From e80a30bcd6ce7e76ae2c8dc918faedb0af649258 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 25 Mar 2018 17:43:24 -0400 Subject: [PATCH] ... --- coders/mtv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.40.0