summaryrefslogtreecommitdiff
path: root/coders/mat.c
diff options
context:
space:
mode:
authorCristy <urban-warrior@imagemagick.org>2018-01-31 19:01:06 -0500
committerCristy <urban-warrior@imagemagick.org>2018-01-31 19:01:06 -0500
commit79ef217ff11ad37e45946bb17ab1d4f3311066c7 (patch)
treeeffb9a05d59b71783662ecc60819bc6cc73f0fb1 /coders/mat.c
parent9e74769caca25bc62707772ef15de9a510609bf2 (diff)
downloadImageMagick-79ef217ff11ad37e45946bb17ab1d4f3311066c7.tar.gz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5851
Diffstat (limited to 'coders/mat.c')
-rw-r--r--coders/mat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/coders/mat.c b/coders/mat.c
index b5a227d12..7194c6efa 100644
--- a/coders/mat.c
+++ b/coders/mat.c
@@ -697,6 +697,7 @@ static Image *ReadMATImageV4(const ImageInfo *image_info,Image *image,
status=SetImageExtent(image,image->columns,image->rows,exception);
if (status == MagickFalse)
return((Image *) NULL);
+ (void) SetImageBackgroundColor(image,exception);
quantum_info=AcquireQuantumInfo(image_info,image);
if (quantum_info == (QuantumInfo *) NULL)
return((Image *) NULL);
@@ -1195,6 +1196,7 @@ RestoreMSCWarning
image2=DestroyImage(image2);
return(DestroyImageList(image));
}
+ (void) SetImageBackgroundColor(image,exception);
quantum_info=AcquireQuantumInfo(clone_info,image);
if (quantum_info == (QuantumInfo *) NULL)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");