We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7439a3d commit 5826f58Copy full SHA for 5826f58
IGC/AdaptorOCL/cmc.cpp
@@ -33,6 +33,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
#include "RT_Jitter_Interface.h"
34
#include "inc/common/igfxfmid.h"
35
#include "AdaptorOCL/OCL/sp/spp_g8.h"
36
+#include "common/secure_mem.h"
37
38
#include <string>
39
@@ -386,7 +387,7 @@ static void populateKernelInfo(const cmc_kernel_info* info,
386
387
size_t size = genBin.size();
388
size_t padding = iSTD::GetAlignmentOffset(size, 64);
389
void* kernelBin = IGC::aligned_malloc(size + padding, 16);
- std::memcpy(kernelBin, genBin.data(), size);
390
+ memcpy_s(kernelBin, size + padding, genBin.data(), size);
391
// pad out the rest with 0s
392
std::memset(static_cast<char*>(kernelBin) + size, 0, padding);
393
0 commit comments