width=ReadBlobLSBShort(image);
height=ReadBlobLSBShort(image);
image_size=2*width*height;
+ if (image_size > GetBlobSize(image))
+ ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
bytes_per_line=width*2;
width=(width*16)/bits_per_pixel;
tim_pixels=(unsigned char *) AcquireQuantumMemory(image_size,
entry=AcquireMagickInfo("TIM","TIM","PSX TIM");
entry->decoder=(DecodeImageHandler *) ReadTIMImage;
+ entry->flags|=CoderDecoderSeekableStreamFlag;
(void) RegisterMagickInfo(entry);
return(MagickImageCoderSignature);
}