]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7507
authorCristy <urban-warrior@imagemagick.org>
Mon, 9 Apr 2018 23:41:05 +0000 (19:41 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 9 Apr 2018 23:41:05 +0000 (19:41 -0400)
coders/heic.c

index 19c0fbdb4d2eef424e0ec548256a069fe6fe9d1d..a78e46c378ae1871dafc3df150d91953f9b32c42 100644 (file)
@@ -1249,6 +1249,8 @@ static Image *ReadHEICImage(const ImageInfo *image_info,
 
     if (info->type != ATOM('E','x','i','f'))
       continue;
+    if (info->size <= 4)
+      continue;
 
     buffer = (unsigned char *) AcquireMagickMemory(info->size);
     if (buffer == NULL) {