File ImageMagick-CVE-2016-10069.patch of Package ImageMagick.openSUSE_Leap_42.3_Update
From 8a370f9ab120faf182aa160900ba692ba8e2bcf0 Mon Sep 17 00:00:00 2001
From: dirk <dirk@git.imagemagick.org>
Date: Sun, 29 May 2016 08:15:48 +0200
Subject: [PATCH] Added check for invalid number of frames.
---
coders/mat.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: ImageMagick-6.8.8-1/coders/mat.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/mat.c 2013-11-07 22:08:17.000000000 +0100
+++ ImageMagick-6.8.8-1/coders/mat.c 2017-01-25 17:18:49.513534647 +0100
@@ -738,6 +738,8 @@ MATLAB_KO: ThrowReaderException(CorruptI
if(z!=3 && z!=1)
ThrowReaderException(CoderError, "MultidimensionalMatricesAreNotSupported");
Frames = ReadBlobXXXLong(image2);
+ if (Frames == 0)
+ ThrowReaderException(CorruptImageError,"ImproperImageHeader");
break;
default: ThrowReaderException(CoderError, "MultidimensionalMatricesAreNotSupported");
}