From 31d3a67949bc3457c77cddf53369ead6ee6bf4c3 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 4 Feb 2018 20:36:33 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5784 --- coders/wpg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coders/wpg.c b/coders/wpg.c index 5d634decc..f560cd02e 100644 --- a/coders/wpg.c +++ b/coders/wpg.c @@ -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) -- 2.40.0