]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1038
authorCristy <urban-warrior@imagemagick.org>
Sat, 24 Mar 2018 16:30:13 +0000 (12:30 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 24 Mar 2018 16:30:13 +0000 (12:30 -0400)
coders/heic.c

index 8bec54ddb6b557e45e816698c4e750d91b009776..593251ca72bf7d862f90de1e0d13addba955fa97 100644 (file)
@@ -57,6 +57,7 @@
 #include "MagickCore/montage.h"
 #include "MagickCore/transform.h"
 #include "MagickCore/memory_.h"
+#include "MagickCore/memory-private.h"
 #include "MagickCore/option.h"
 #include "MagickCore/pixel-accessor.h"
 #include "MagickCore/quantum-private.h"
@@ -405,7 +406,7 @@ static MagickBooleanType ParseIpcoAtom(Image *image, DataBuffer *db,
     prop = &(ctx->itemProps[ctx->itemPropsCount]);
     prop->type = atom;
     prop->size = length - 8;
-    prop->data = (uint8_t *) AcquireMagickMemory(prop->size);
+    prop->data = (uint8_t *) AcquireCriticalMemory(prop->size);
     if (DBChop(&propDb, db, prop->size) != MagickTrue) {
       ThrowAndReturn("incorrect read size");
     }