]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7505
authorCristy <urban-warrior@imagemagick.org>
Tue, 10 Apr 2018 00:08:27 +0000 (20:08 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 10 Apr 2018 00:08:27 +0000 (20:08 -0400)
coders/heic.c

index a78e46c378ae1871dafc3df150d91953f9b32c42..2a51712a4179368f8d99621671a4bbaaf48a3434 100644 (file)
@@ -941,7 +941,7 @@ static MagickBooleanType decodeH265Image(Image *image, HEICImageContext *ctx, un
       if (warning==DE265_OK) {
         break;
       }
-
+      buffer = (unsigned char *) RelinquishMagickMemory(buffer);
       ThrowBinaryException(CoderWarning,(const char *)NULL,
         de265_get_error_text(warning));
     }