Bug 682238 - ImageMagick: convert to 4-colour TIFF produces incorrect results
Summary: ImageMagick: convert to 4-colour TIFF produces incorrect results
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.4
Classification: openSUSE
Component: Other (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 11.4
: P3 - Medium : Major (vote)
Target Milestone: ---
Assignee: Petr Gajdos
QA Contact: E-mail List
URL: http://www.imagemagick.org/discourse-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-24 10:40 UTC by Christopher Yeleighton
Modified: 2011-04-11 14:56 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2011-03-24 10:40:11 UTC
User-Agent:       Mozilla/5.0 (compatible; Konqueror/4.6; Linux) KHTML/4.6.0 (like Gecko) SUSE

ImageMagick incorrectly saves images to indexed TIFF with a 4-color palette.  The result is stretched horizontally, cropped and smudged.  Since libtiff does not provide an alternative tool to do it, there is currently no way to produce such an image using openSuSE.

Reproducible: Always

Steps to Reproduce:
  1. { convert -size 100x400 canvas:red canvas:green +append canvas:blue +append -type Palette c4.tiff && xdg-open c4.tiff; }

Actual Results:  
  1. A red rectangle.

Expected Results:  
  1. A red-green-blue striped rectangle.

Fixed upstream
Comment 1 Christopher Yeleighton 2011-03-24 16:33:24 UTC
{ convert -size 100x400 canvas:red canvas:green +append canvas:blue +append -type Palette c4.tiff && xdg-open c4.tiff; }
Comment 2 Christopher Yeleighton 2011-03-24 16:34:25 UTC
{ convert -size 100x400 \
canvas:red canvas:green +append canvas:blue +append \
-type Palette c4.tiff && xdg-open c4.tiff; }
Comment 3 Christopher Yeleighton 2011-03-24 16:37:17 UTC
{ convert -size 100x400 \
canvas:red canvas:green +append canvas:blue +append \
-colors 4 c4.tiff && xdg-open c4.tiff; }
Comment 4 Petr Gajdos 2011-03-28 07:10:50 UTC
Could you please provide

rpm -q --changelog tiff | head

?
Comment 6 Christopher Yeleighton 2011-03-30 08:12:58 UTC
(In reply to comment #4)
> rpm -q --changelog tiff | head

* Thu Mar 03 2011 pgajdos@suse.cz
- fixed buffer overflow [bnc#672510]
  * CVE-2011-0192.patch

* Mon Sep 06 2010 pgajdos@suse.cz
- fixed "Possibly exploitable memory corruption issue in libtiff"
  (see http://bugzilla.maptools.org/show_bug.cgi?id=2228)
  [bnc#624215]
  * scanlinesize.patch
- fixed crash while using libjpeg7 and higher
Comment 7 Petr Gajdos 2011-04-11 13:31:56 UTC
I can confirm that this bug was fixed by suggested version update (6.6.8.9).
New package will be in factory soon, testing will be appreciated

Thanks for your report!
Comment 8 Bernhard Wiedemann 2011-04-11 14:56:31 UTC
This bug (682238) was mentioned in
https://build.opensuse.org/request/show/66846