operand++;
if ((offset < 0) ||
((size_t) (offset+operand*number_planes) > pixel_info_length))
- {
- if (number_colormaps != 0)
- colormap=(unsigned char *) RelinquishMagickMemory(colormap);
- pixel_info=RelinquishVirtualMemory(pixel_info);
- ThrowRLEException(CorruptImageError,"UnableToReadImageData");
- }
+ ThrowRLEException(CorruptImageError,"UnableToReadImageData");
p=pixels+offset;
for (i=0; i < (ssize_t) operand; i++)
{
operand++;
if ((offset < 0) ||
((size_t) (offset+operand*number_planes) > pixel_info_length))
- {
- if (number_colormaps != 0)
- colormap=(unsigned char *) RelinquishMagickMemory(colormap);
- pixel_info=RelinquishVirtualMemory(pixel_info);
- ThrowRLEException(CorruptImageError,"UnableToReadImageData");
- }
+ ThrowRLEException(CorruptImageError,"UnableToReadImageData");
p=pixels+offset;
for (i=0; i < (ssize_t) operand; i++)
{
p++;
}
if ((i < (ssize_t) number_pixels) || (x < (ssize_t) number_planes))
- {
- colormap=(unsigned char *) RelinquishMagickMemory(colormap);
- pixel_info=RelinquishVirtualMemory(pixel_info);
- ThrowRLEException(CorruptImageError,"UnableToReadImageData");
- }
+ ThrowRLEException(CorruptImageError,"UnableToReadImageData");
}
/*
Initialize image structure.