]> granicus.if.org Git - imagemagick/commitdiff
Added extra check for an early exit.
authorDirk Lemstra <dirk@git.imagemagick.org>
Fri, 6 Apr 2018 19:01:22 +0000 (21:01 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Fri, 6 Apr 2018 19:01:22 +0000 (21:01 +0200)
coders/rla.c

index f3fab923b5a24cb65c88eb0e7a8cec26cc39c8de..7b9492c9a6e42b128d5a0d28bf1cc1ae4568a81f 100644 (file)
@@ -396,6 +396,8 @@ static Image *ReadRLAImage(const ImageInfo *image_info,ExceptionInfo *exception)
         while (runlength > 0);
       }
     }
+    if (EOFBlob(image) != MagickFalse)
+      break;
     status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y,
       image->rows);
     if (status == MagickFalse)