From 477accb7c803c78af052f34dd4cc0c4705a64fb9 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 30 Sep 2017 09:49:03 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/795 --- MagickCore/opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index 268652c72..e2d040100 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c @@ -2320,7 +2320,7 @@ static void LoadOpenCLDevices(MagickCLEnv clEnv) openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_VENDOR,0,NULL, &length); - device->vendor_name=AcquireQuantumMemory(length, + device->vendor_name=AcquireCriticalMemory(length* sizeof(*device->vendor_name)); openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_VENDOR,length, device->vendor_name,NULL); -- 2.40.0