identify crashes on non-image XML files

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
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

identify crashes on non-image XML files

Post by broucaries »

from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533704

A user run identify on a directory containing xml file that are not image and it crahs with message like this
Identify: Memory allocation failed `eg.rdf' @ svg.c/ReadSVGImage/2827.

Identify: Memory allocation failed `eg.html' @ svg.c/ReadSVGImage/2827.

It look like xml are considered by default as svg.

bastien
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: identify crashes on non-image XML files

Post by broucaries »

Any news of this bug ?

Regards

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

Re: identify crashes on non-image XML files

Post by magick »

We cannot reproduce the problem. Post a URL to an image that is misidentified as SVG when its plain XML so we can download it, reproduce the problem, and work towards a patch. Thanks.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: identify crashes on non-image XML files

Post by magick »

We have a patch for the problem you reported. Non-SVG XML files will return with a 'no decode delegate for this image format' exception.
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: identify crashes on non-image XML files

Post by broucaries »

Could you send the patch to 533704 at bugs.debian.org we will try to backport if possible.
Post Reply