]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7479
authorCristy <urban-warrior@imagemagick.org>
Sun, 8 Apr 2018 23:10:35 +0000 (19:10 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 8 Apr 2018 23:10:35 +0000 (19:10 -0400)
MagickCore/draw.c

index d0fdc6bc74b1972e9234f2d34e7a11118e5310f9..28f2867e22c2d15c0465a532e372c9c9f87e74d9 100644 (file)
@@ -3032,6 +3032,8 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
         ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
           image->filename);
     }
+    if (status == MagickFalse)
+      break;
     primitive_info[j].primitive=primitive_type;
     primitive_info[j].coordinates=(size_t) x;
     primitive_info[j].method=FloodfillMethod;