[Magick-bugs] Bug in xpm.c
Werner Meisner
weme23 at gmx.net
Tue Apr 3 03:39:06 PDT 2007
There was a bug in the new xpm-decoder that leds to a Segfault
on some xpm-files
The MagickMin(const size_t x,const size_t y)-function is only
a work-around that ignores the symptoms
The following patch corrects the bug and leds to correct handling
of xpm-files
--- coders/xpm.c.old 2007-04-03 12:22:17.000000000 +0200
+++ coders/xpm.c 2007-04-03 12:23:30.000000000 +0200
@@ -191,6 +191,7 @@
p=color;
for (q=targets[i]; *p != '\0'; p++)
{
+ if (*p == '\n') break;
if (*p != *q)
continue;
if (isspace((int) ((unsigned char) (*(p-1)))) == 0)
More information about the Magick-bugs
mailing list