List Info

Thread: Bug in xpm.c




Bug in xpm.c
user name
2007-04-03 05:39:06
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 != ''; p++)
     {
+      if (*p == 'n') break;
       if (*p != *q)
         continue;
       if (isspace((int) ((unsigned char) (*(p-1)))) == 0)



_______________________________________________
Magick-bugs mailing list
Magick-bugsimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-
bugs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )