Closed
Description
Here is the critical code: (in CacheOpenCLKernel)
binaryProgram=(unsigned char*) AcquireMagickMemory(binaryProgramSize); //1251
status=openCL_library->clGetProgramInfo(device->program,
CL_PROGRAM_BINARIES,sizeof(unsigned char*),&binaryProgram,NULL);
AcquireMagickMemory(...) may return NULL, so the following operations on the "binaryProgram" will dereference null pointer to cause memory error.