if (length == 0)
{
count=ReadBlob(image,packet_size,pixels);
+ if (count != packet_size)
+ ThrowReaderException(CorruptImageError,
+ "UnableToReadImageData");
PushRunlengthPacket(image,pixels,&length,&pixel,exception);
}
length--;
default:
{
count=ReadBlob(image,packet_size*image->columns,pixels);
+ if (count != (packet_size*image->columns))
+ ThrowReaderException(CorruptImageError,"UnableToReadImageData");
(void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info,
quantum_type,pixels,exception);
break;