This patch fixes an SVACE issue (#283026) related to
NO_CAST.INTEGER_OVERFLOW.
Change-Id: Idadbadc8e5d2a7791b1b483ba0500f1090c9f731
Signed-off-by: Wook Song <wook16.song@samsung.com>
#endif
buff.req_id = meta.req_id;
+ buff.profile_buf = reinterpret_cast<std::uintptr_t> (profile->layers);
uint32_t chunk_size;
uint32_t pos = 0;
chunk_size = PROFILE_MAXSIZE;
buff.profile_pos = pos;
- buff.profile_buf = reinterpret_cast<std::uintptr_t>(profile->layers) + pos;
+ buff.profile_buf += pos;
buff.profile_size = chunk_size;
ret = ioctl (this->getDeviceFD (), TRINITY_IOCTL_GET_PROFILE_BUFF, &buff);