From: Cristy Date: Wed, 4 Jul 2018 18:24:47 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1190 X-Git-Tag: 7.0.8-5~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=082223fb992448dbb574747deac9a30f986c116e;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1190 --- diff --git a/coders/meta.c b/coders/meta.c index 121dc682b..26aef22e4 100644 --- a/coders/meta.c +++ b/coders/meta.c @@ -430,14 +430,23 @@ static ssize_t parse8BIM(Image *ifile, Image *ofile) ssize_t diff = outputlen - savedolen; currentpos = TellBlob(ofile); if (currentpos < 0) - return(-1); + { + line=DestroyString(line); + return(-1); + } offset=SeekBlob(ofile,savedpos,SEEK_SET); if (offset < 0) - return(-1); + { + line=DestroyString(line); + return(-1); + } (void) WriteBlobMSBLong(ofile,(unsigned int) diff); offset=SeekBlob(ofile,currentpos,SEEK_SET); if (offset < 0) - return(-1); + { + line=DestroyString(line); + return(-1); + } savedolen = 0L; } if (outputlen & 1)