When ImageMagick processes a crafted file in convert, it can lead to a heap-based buffer over-read in the GetPixelIndex() function, called from the WritePICONImage function in coders/xpm.c. Upstream issue: https://github.com/ImageMagick/ImageMagick/issues/581