Skip to content

Commit 97566cf

Browse files
author
Cristy
committed
...
1 parent d23beeb commit 97566cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: coders/ipl.c

+2
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ static MagickBooleanType WriteIPLImage(const ImageInfo *image_info,Image *image)
545545
scene=0;
546546

547547
quantum_info=AcquireQuantumInfo(image_info, image);
548+
if (quantum_info == (QuantumInfo *) NULL)
549+
ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
548550
if ((quantum_info->format == UndefinedQuantumFormat) &&
549551
(IsHighDynamicRangeImage(image,&image->exception) != MagickFalse))
550552
SetQuantumFormat(image,quantum_info,FloatingPointQuantumFormat);

0 commit comments

Comments
 (0)