]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5784
authorCristy <urban-warrior@imagemagick.org>
Mon, 5 Feb 2018 01:36:33 +0000 (20:36 -0500)
committerCristy <urban-warrior@imagemagick.org>
Mon, 5 Feb 2018 01:36:33 +0000 (20:36 -0500)
coders/wpg.c

index 5d634decce83bdf59a3e9e0d655c8f88bd5087dc..f560cd02e8c23e540101349a3bf68c5686c7f081 100644 (file)
@@ -789,6 +789,8 @@ static Image *ExtractPostscript(Image *image,const ImageInfo *image_info,
   /*     printf("Detected:%s  \n",magic_info->name); */
   if(exception->severity != UndefinedException) goto FINISH_UNL;
   if(magic_info->name == (char *) NULL) goto FINISH_UNL;
+  if (LocaleCompare(magic_info->name,"WPG") == 0)
+    goto FINISH_UNL;
 
   (void) strncpy(clone_info->magick,magic_info->name,MagickPathExtent-1);
   if (LocaleCompare(image_info->magick,clone_info->magick) == 0)