From: Dirk Lemstra Date: Fri, 6 Apr 2018 19:01:22 +0000 (+0200) Subject: Added extra check for an early exit. X-Git-Tag: 7.0.7-29~184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac92b9d384c68a1160a0f1b8222eea4a121970ca;p=imagemagick Added extra check for an early exit. --- diff --git a/coders/rla.c b/coders/rla.c index f3fab923b..7b9492c9a 100644 --- a/coders/rla.c +++ b/coders/rla.c @@ -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)