6.6.9-3: crash when "convert a.png -resize 33% png8:b.png"

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
pepr
Posts: 2
Joined: 2011-03-23T05:57:31-07:00
Authentication code: 8675308

6.6.9-3: crash when "convert a.png -resize 33% png8:b.png"

Post by pepr »

I am using Window 7 64-bit. After installing the ImageMagick-6.6.9-3-Q16-windows-x64-dll.exe, the

Code: Select all

convert a.png -resize 33% png8:b.png
crashed and produced the empty b.png. The a.png is the snapshot of the application window
and can be downloaded from http://www.skil.cz/bug/ImageMagick/a.png

The same problem was observed with the 32-bit version of the ImageMagick version (the same release).
After returning back to ImageMagick-6.6.3-4-Q16-windows-x64-dll.exe it work (almost) fine.

My reason for the wanted update was that the older version complains about
invalid background palette index when converting another file

Code: Select all

C:\tmp\a>convert c.png -resize 33% png8:d.png
Magick: Invalid background palette index `d.png' @ warning/png.c/PNGWarningHandler/1503.
The c.png can be downloaded as http://www.skil.cz/bug/ImageMagick/c.png

Thanks,
Petr
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 6.6.9-3: crash when "convert a.png -resize 33% png8:b.pn

Post by fmw42 »

Both commands ran successfully (no crash) on my IM 6.6.9.3 Q16 Mac OSX Tiger. HOWEVER, neither resulting image could be opened.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: 6.6.9-3: crash when "convert a.png -resize 33% png8:b.pn

Post by glennrp »

I'm seeing a "double-free" crash with both commands on my
Ubuntu platform with IM-6.9.3 apparently during the quantization to the 3-3-3-1
palette. It is in a section of code where there is a comment "should not
reach this", so there's some kind of logic error there.

edit: The problem was that a bogus image->colormap was attached to
the non-PseudoClass image that was passed to the PNG encoder.
This is fixed (in the PNG encoder, not fixing the underlying problem) in SVN
revision 4193 (IM-6.6.9-4).
pepr
Posts: 2
Joined: 2011-03-23T05:57:31-07:00
Authentication code: 8675308

Re: 6.6.9-3: crash when "convert a.png -resize 33% png8:b.pn

Post by pepr »

Thanks! The 6.6.9-4 works now :D
Post Reply