From: Cristy Date: Sat, 30 Sep 2017 13:46:49 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/794 X-Git-Tag: 7.0.7-5~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de5deab202c340162b65f65bafbbe17b1eda2c1a;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/794 --- diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index 0191a8032..268652c72 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c @@ -2313,7 +2313,7 @@ static void LoadOpenCLDevices(MagickCLEnv clEnv) openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_NAME,0,NULL, &length); - device->platform_name=AcquireQuantumMemory(length, + device->platform_name=AcquireCriticalMemory(length* sizeof(*device->platform_name)); openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_NAME,length, device->platform_name,NULL);