--- coders/psd.c~ 2002-03-26 03:26:03.000000000 +0100 +++ coders/psd.c 2005-01-14 11:36:06.000000000 +0100 @@ -558,6 +558,7 @@ static Image *ReadPSDImage(const ImageIn ThrowReaderException(CorruptImageWarning,"Not a PSD image file",image); (void) ReadBlob(image,6,(char *) psd_info.reserved); psd_info.channels=ReadBlobMSBShort(image); + if (psd_info.channels > 24) psd_info.channels = 24; psd_info.rows=ReadBlobMSBLong(image); psd_info.columns=ReadBlobMSBLong(image); psd_info.depth=ReadBlobMSBShort(image);