From 79ef217ff11ad37e45946bb17ab1d4f3311066c7 Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 31 Jan 2018 19:01:06 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5851 --- coders/mat.c | 2 ++ 1 file changed, 2 insertions(+) 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"); -- 2.40.0