Closed
Description
Here is the critical code: (in GetOpenCLCacheDirectory)
temp=(char*) AcquireMagickMemory(strlen(path)+1); //326
CopyMagickString(temp,path,strlen(path)+1);
AcquireMagickMemory(...) may return NULL, so the following operations on the "temp" will dereference null pointer to cause memory error.