45fd651d2fd3c7e2d8fcab582bbbe8056375df62
ECR #333753 - ORCA RT: aclCompilerInit usage fix Passing pointers on CRT memory management functions to dynamically loaded library is unsafe and may lead to memory corruption. But actually the pointers aren't actually passed. They are cut off by the struct size: sizeof(aclCompilerOptions_0_8) and hence never being called. P.S. If it was aclCompilerOptions_0_8_1 the pointers would be taken into account and a heap corruption would occur. So the change intended to liquidate possible misunderstanding of malloc & free functions usage, and doesn't change the behaviour of aclCompilerInit function at all. Testing: pre check-in Reviewers: German Andreev, Stanislav Mekhanoshin Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.cpp#271 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#507 edit
Popis
Nebyl uveden žádný popis
Jazyky
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
Jiný
1.1%