From: Cristy Date: Sun, 25 Mar 2018 21:43:24 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-29~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e80a30bcd6ce7e76ae2c8dc918faedb0af649258;p=imagemagick ... --- diff --git a/coders/mtv.c b/coders/mtv.c index 8778c7add..552848061 100644 --- a/coders/mtv.c +++ b/coders/mtv.c @@ -212,7 +212,8 @@ static Image *ReadMTVImage(const ImageInfo *image_info,ExceptionInfo *exception) if (image->scene >= (image_info->scene+image_info->number_scenes-1)) break; *buffer='\0'; - (void) ReadBlobString(image,buffer); + if (ReadBlobString(image,buffer) == (char *) NULL) + break; count=(ssize_t) sscanf(buffer,"%lu %lu\n",&columns,&rows); if (count > 0) {