ReadSVGImage crashes in case of concurrent access

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
GerhardT
Posts: 1
Joined: 2013-08-29T06:36:37-07:00
Authentication code: 6789

ReadSVGImage crashes in case of concurrent access

Post by GerhardT »

Calling ReadImage (with image type svg) in different threads results in a crash in “xmlCleanupParser”.
According to the definition of xmlCleanupParser this function must only be called when the process has finished using the xml library.
See also http://xmlsoft.org/html/libxml-parser.h ... anupParser

According to the definition of "xmlInitParser" this function must also be called only once.

The same problem seems to be in the file msl.c (ProcessMSLScript).
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ReadSVGImage crashes in case of concurrent access

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.8.6-10 Beta available by sometime tomorrow. Thanks.
Post Reply