From: Dirk Lemstra Date: Mon, 11 Sep 2017 06:11:18 +0000 (+0200) Subject: Added missing increment of offset. X-Git-Tag: 7.0.7-2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf82e6d482dcb953584670a4cb5550df87922a17;p=imagemagick Added missing increment of offset. --- diff --git a/coders/tiff.c b/coders/tiff.c index e3e285054..96247f18d 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1101,6 +1101,7 @@ static ssize_t TIFFReadCustomStream(unsigned char *data,const size_t count, return(-1); total=MagickMin(count, (size_t) remaining); (void) memcpy(data,profile->data->datum+profile->offset,total); + profile->offset+=total; return(total); }