]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18134
authorCristy <urban-warrior@imagemagick.org>
Sat, 12 Oct 2019 13:06:02 +0000 (09:06 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 12 Oct 2019 13:06:02 +0000 (09:06 -0400)
MagickCore/draw.c

index 76e070267666e34f7e2d61dc974a430b2d2e001c..5bc3078b3cffed3c5ed95d0469283f6c1adb1f65 100644 (file)
@@ -5444,7 +5444,9 @@ MagickExport MagickBooleanType DrawPrimitive(Image *image,
         {
           (void) CopyMagickString(clone_info->filename,primitive_info->text,
             MagickPathExtent);
-          composite_images=ReadImage(clone_info,exception);
+          SetImageInfo(clone_info,0,exception);
+          if (*clone_info->filename != '\0')
+            composite_images=ReadImage(clone_info,exception);
         }
       clone_info=DestroyImageInfo(clone_info);
       if (composite_images == (Image *) NULL)