File ImageMagick-CVE-2016-10144.patch of Package ImageMagick.8212

From 97566cf2806c0a5a86e884c96831a0c3b1ec6c20 Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Sat, 24 Dec 2016 12:04:40 -0500
Subject: [PATCH] ...

---
 coders/ipl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/coders/ipl.c b/coders/ipl.c
index 002ee6f..58c60ca 100644
--- a/coders/ipl.c
+++ b/coders/ipl.c
@@ -545,6 +545,8 @@ static MagickBooleanType WriteIPLImage(const ImageInfo *image_info,Image *image)
   scene=0;
 
   quantum_info=AcquireQuantumInfo(image_info, image);
+  if (quantum_info == (QuantumInfo *) NULL)
+    ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
   if ((quantum_info->format == UndefinedQuantumFormat) &&
       (IsHighDynamicRangeImage(image,&image->exception) != MagickFalse))
     SetQuantumFormat(image,quantum_info,FloatingPointQuantumFormat);