From: Cristy Date: Sat, 3 Feb 2018 14:04:20 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5930 X-Git-Tag: 7.0.7-23~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8a34c738188671329610816b453b6dfcff5f548;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5930 --- diff --git a/coders/miff.c b/coders/miff.c index 88b9205aa..a1d3b8541 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -911,8 +911,11 @@ static Image *ReadMIFFImage(const ImageInfo *image_info, *profile; if ((MagickSizeType) StringToLong(options) > GetBlobSize(image)) - ThrowReaderException(CorruptImageError, - "InsufficientImageDataInFile"); + { + options=DestroyString(options); + ThrowReaderException(CorruptImageError, + "InsufficientImageDataInFile"); + } if (profiles == (LinkedListInfo *) NULL) profiles=NewLinkedList(0); (void) AppendValueToLinkedList(profiles,