From: cristy Date: Thu, 12 Jul 2012 11:13:04 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5272 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c219b10d179fbdeb1bb90a2bccc2ad635c05269;p=imagemagick --- diff --git a/coders/gif.c b/coders/gif.c index 4d9ce5bae..ac69f5ecb 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -884,7 +884,10 @@ static ssize_t ReadBlobBlock(Image *image,unsigned char *data) count=ReadBlob(image,1,&block_count); if (count != 1) return(0); - return(ReadBlob(image,(size_t) block_count,data)); + count=ReadBlob(image,(size_t) block_count,data); + if (count != (ssize_t) block_count) + return(0); + return(count); } /*