Adobe Elements Jpeg files and bad comments, crash.

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
wilburlo

Adobe Elements Jpeg files and bad comments, crash.

Post by wilburlo »

I believe a found a bug in image magick 6.3.5

Apparently Adobe Photoshop Elements 4.0 (On Mac) places some extra comment
blocks in it's jpeg files.

When I attempt to "identify" the file, identify crashes with this error message

# identify adobe_bad_comment.jpg
identify in realloc(): warning: junk pointer, too high to make sense
identify in free(): warning: junk pointer, too high to make sense
identify: unable to allocate string `begin="" id="W5M0MpCehiHzreSzNTczkc9d"'.

After I run "jpegtran -copy none" on the file, "identify" has no problems with
it.

# jpegtran -copy none adobe_bad_comment.jpg > adobe_cleaned.jpg

# identify adobe_cleaned.jpg
adobe_cleaned.jpg JPEG 743x557 743x557+0+0 DirectClass 8-bit 106.908kb

Here is the bad commented image:
http://pic1.picturetrail.com/VOL1151/59 ... omment.jpg

Here is the no commentes image
http://pic1.picturetrail.com/VOL1151/59 ... leaned.jpg

Will you be able to place a fix for this in 6.3.5-1?

This bug is not present in 6.3.3, FYI.

TIA,

-daniel


-- System info --

FreeBSD [deleted] 6.1-STABLE FreeBSD 6.1-STABLE #1: Thu Jun 15 14:41:29 PDT 2006 [deleted]
:/usr/obj/usr/src/sys/WWWv2 amd64

# identify -version
Version: ImageMagick 6.3.5 07/06/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Adobe Elements Jpeg files and bad comments, crash.

Post by magick »

6.3.5 parses the XMP profile. Apparently its tickling a bug in the XML parser although identifying your image under Fedora Linux seems to work fine. Will investigate further sometime this week.
wilburlo

Re: Adobe Elements Jpeg files and bad comments, crash.

Post by wilburlo »

If there is any information I can get you, please let me know.


Thank you,

-daniel
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Adobe Elements Jpeg files and bad comments, crash.

Post by magick »

Grab ImageMagick 6.3.5-1 from ftp://magick.imagemagick.org/pub/ImageMagick/beta in about an hour (its building now). See if the patch to magick./xml-tree.c fixed the problem.
wilburlo

Re: Adobe Elements Jpeg files and bad comments, crash.

Post by wilburlo »

We were not able to reproduce this error with Image-Magick 6.3.5-1 beta.

Thank you for the bug fix!!!


-daniel
Post Reply