Skip to content

Commit 5826f58

Browse files
juanrod2sys_zuul
authored and
sys_zuul
committed
Fixes for Klocwork issues
Change-Id: Idaa7cc0eb7ffe96ec515e1b0d61acb4dc7b01d55
1 parent 7439a3d commit 5826f58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

IGC/AdaptorOCL/cmc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3333
#include "RT_Jitter_Interface.h"
3434
#include "inc/common/igfxfmid.h"
3535
#include "AdaptorOCL/OCL/sp/spp_g8.h"
36+
#include "common/secure_mem.h"
3637

3738
#include <string>
3839

@@ -386,7 +387,7 @@ static void populateKernelInfo(const cmc_kernel_info* info,
386387
size_t size = genBin.size();
387388
size_t padding = iSTD::GetAlignmentOffset(size, 64);
388389
void* kernelBin = IGC::aligned_malloc(size + padding, 16);
389-
std::memcpy(kernelBin, genBin.data(), size);
390+
memcpy_s(kernelBin, size + padding, genBin.data(), size);
390391
// pad out the rest with 0s
391392
std::memset(static_cast<char*>(kernelBin) + size, 0, padding);
392393

0 commit comments

Comments
 (0)