]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6152
authorCristy <urban-warrior@imagemagick.org>
Fri, 9 Feb 2018 01:07:47 +0000 (20:07 -0500)
committerCristy <urban-warrior@imagemagick.org>
Fri, 9 Feb 2018 01:07:47 +0000 (20:07 -0500)
coders/caption.c
coders/label.c

index 3dc16636e5ccf61d56c14d41edaffd577e4d1005..0d8351e2be7c3e63eb0be6c29ec85a1d8d6d52c4 100644 (file)
@@ -149,6 +149,8 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
     else
       property=InterpretImageProperties((ImageInfo *) image_info,image,option,
         exception);
+  if (property == (char *) NULL)
+    return((Image *) NULL);
   (void) SetImageProperty(image,"caption",property,exception);
   property=DestroyString(property);
   caption=ConstantString(GetImageProperty(image,"caption",exception));
index 60d00e3ff2bb6151cd09a31c8ad3ca31751c045a..6fdc1c5870463ef9f08596074a43fcdc79205f3f 100644 (file)
@@ -126,6 +126,8 @@ static Image *ReadLABELImage(const ImageInfo *image_info,
   (void) ResetImagePage(image,"0x0+0+0");
   property=InterpretImageProperties((ImageInfo *) image_info,image,
     image_info->filename,exception);
+  if (property == (char *) NULL)
+    return((Image *) NULL);
   (void) SetImageProperty(image,"label",property,exception);
   property=DestroyString(property);
   label=GetImageProperty(image,"label",exception);