}
}
-static MagickBooleanType SkipTIM2Bytes(Image *image,size_t count)
-{
- while (count > 0)
- {
- if (ReadBlobByte(image) == EOF)
- return(MagickFalse);
- count--;
- }
- return(MagickTrue);
-}
-
static MagickBooleanType ReadTIM2ImageData(const ImageInfo *image_info,
Image *image,TIM2ImageHeader *header,char clut_depth,char bits_per_pixel,
ExceptionInfo *exception)
/*
* User data
*/
- status=SkipTIM2Bytes(image,header->header_size-48);
+ status=DiscardBlobBytes(image,header->header_size-48);
if (status == MagickFalse)
return(MagickFalse);
/*
switch(file_header.format_type)
{
case 0x00:
- if (SkipTIM2Bytes(image,16) == MagickFalse)
+ if (DiscardBlobBytes(image,16) == MagickFalse)
ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
break;
case 0x01:
- if (SkipTIM2Bytes(image,128) == MagickFalse)
+ if (DiscardBlobBytes(image,128) == MagickFalse)
ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
break;
default: