From 2c219b10d179fbdeb1bb90a2bccc2ad635c05269 Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 12 Jul 2012 11:13:04 +0000 Subject: [PATCH] --- coders/gif.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } /* -- 2.50.1