diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-10-10 10:45:10 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-10-10 10:45:10 +0200 |
commit | 63ea81431959f8c7f164f6f343a9f55102769ea7 (patch) | |
tree | b94618327cbc85c0a291b1852cde0d9473e5b097 /14d2cea959977a84f0eb65d7b270cf7007375df1.patch | |
parent | 1539772fc699e0bd2d8b4c8390eb1e45213a0427 (diff) |
ImageMagick7: 7.0.3-3 with upstream patch
Diffstat (limited to '14d2cea959977a84f0eb65d7b270cf7007375df1.patch')
-rw-r--r-- | 14d2cea959977a84f0eb65d7b270cf7007375df1.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/14d2cea959977a84f0eb65d7b270cf7007375df1.patch b/14d2cea959977a84f0eb65d7b270cf7007375df1.patch new file mode 100644 index 0000000..2356d76 --- /dev/null +++ b/14d2cea959977a84f0eb65d7b270cf7007375df1.patch @@ -0,0 +1,36 @@ +From 14d2cea959977a84f0eb65d7b270cf7007375df1 Mon Sep 17 00:00:00 2001 +From: Cristy <urban-warrior@imagemagick.org> +Date: Sun, 9 Oct 2016 14:29:08 -0400 +Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/284 + +--- + coders/sun.c | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/coders/sun.c b/coders/sun.c +index 6bbe3ac..f224b8b 100644 +--- a/coders/sun.c ++++ b/coders/sun.c +@@ -266,7 +266,8 @@ static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception) + bytes_per_line, + extent, + height, +- pixels_length; ++ pixels_length, ++ quantum; + + ssize_t + count, +@@ -442,9 +443,10 @@ static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception) + sun_data=(unsigned char *) RelinquishMagickMemory(sun_data); + ThrowReaderException(ResourceLimitError,"ImproperImageHeader"); + } +- bytes_per_line+=7; ++ quantum=sun_info.depth == 1 ? 15 : 7; ++ bytes_per_line+=quantum; + bytes_per_line<<=1; +- if ((bytes_per_line >> 1) != (sun_info.width*sun_info.depth+7)) ++ if ((bytes_per_line >> 1) != (sun_info.width*sun_info.depth+quantum)) + { + sun_data=(unsigned char *) RelinquishMagickMemory(sun_data); + ThrowReaderException(ResourceLimitError,"ImproperImageHeader"); |