File ImageMagick-CVE-2018-14437.patch of Package ImageMagick.23974
Index: ImageMagick-6.8.8-1/coders/meta.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/meta.c 2018-08-07 14:36:52.020932945 +0200
+++ ImageMagick-6.8.8-1/coders/meta.c 2018-08-07 14:41:59.782401236 +0200
@@ -425,11 +425,17 @@ static ssize_t parse8BIM(Image *ifile, I
currentpos = TellBlob(ofile);
offset=SeekBlob(ofile,savedpos,SEEK_SET);
if (offset < 0)
+ {
+ line=DestroyString(line);
return(-1);
+ }
(void) WriteBlobMSBLong(ofile,(unsigned int) diff);
offset=SeekBlob(ofile,currentpos,SEEK_SET);
if (offset < 0)
+ {
+ line=DestroyString(line);
return(-1);
+ }
savedolen = 0L;
}
if (outputlen & 1)