Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 857b723175ea1d5f45c5b31f25037f76 > files > 26

imagemagick-6.8.9.9-4.2.mga5.src.rpm

From 2d74929c4e84524a6d625bb9aba3007b5cef9151 Mon Sep 17 00:00:00 2001
From: cristy <cristy@aa41f4f7-0bf4-0310-aa73-e5a19afd5a74>
Date: Sun, 7 Dec 2014 18:17:22 +0000
Subject: Fix compile error in previous fix of sun file

git-svn-id: https://subversion.imagemagick.org/subversion/ImageMagick/branches/ImageMagick-6@17171 aa41f4f7-0bf4-0310-aa73-e5a19afd5a74
origin:  http://trac.imagemagick.org/changeset/17171

diff --git a/coders/sun.c b/coders/sun.c
index 07234b7..91445ec 100644
--- a/coders/sun.c
+++ b/coders/sun.c
@@ -257,6 +257,7 @@ static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception)
 
   size_t
     bytes_per_line,
+    extent,
     length;
 
   ssize_t
@@ -306,6 +307,7 @@ static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception)
     sun_info.type=ReadBlobMSBLong(image);
     sun_info.maptype=ReadBlobMSBLong(image);
     sun_info.maplength=ReadBlobMSBLong(image);
+    extent=sun_info.height*sun_info.width;
     if ((sun_info.height != 0) && (sun_info.width != extent/sun_info.height))
       ThrowReaderException(CorruptImageError,"ImproperImageHeader");
     if ((sun_info.type != RT_STANDARD) && (sun_info.type != RT_ENCODED) &&
-- 
cgit v0.10.2