File ImageMagick-CVE-2017-18250.patch of Package ImageMagick.8212

Index: ImageMagick-6.8.8-1/magick/opencl.c
===================================================================
--- ImageMagick-6.8.8-1.orig/magick/opencl.c	2018-04-11 09:25:08.785794860 +0200
+++ ImageMagick-6.8.8-1/magick/opencl.c	2018-04-11 09:25:44.238420504 +0200
@@ -784,7 +784,7 @@ static MagickBooleanType CompileOpenCLKe
           char* log;
           size_t logSize;
           clGetProgramBuildInfo(clEnv->programs[i], clEnv->device, CL_PROGRAM_BUILD_LOG, 0, NULL, &logSize);
-          log = (char*)AcquireMagickMemory(logSize);
+          log = (char*)AcquireCriticalMemory(logSize);
           clGetProgramBuildInfo(clEnv->programs[i], clEnv->device, CL_PROGRAM_BUILD_LOG, logSize, log, &logSize);
 
           (void) FormatLocaleString(path,MaxTextExtent,"%s%s%s"