From de5deab202c340162b65f65bafbbe17b1eda2c1a Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 30 Sep 2017 09:46:49 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/794 --- MagickCore/opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0