if(EOFBlob(image)) break;
MATLAB_HDR.ObjectSize = ReadBlobXXXLong(image);
if(EOFBlob(image)) break;
- if(MATLAB_HDR.ObjectSize+filepos > GetBlobSize(image))
+ if((MagickSizeType) (MATLAB_HDR.ObjectSize+filepos) > GetBlobSize(image))
goto MATLAB_KO;
filepos += MATLAB_HDR.ObjectSize + 4 + 4;
number_planes+plane);
operand++;
if ((offset < 0) ||
- ((offset+operand*number_planes) > (ssize_t) pixel_info_length))
+ ((size_t) (offset+operand*number_planes) > pixel_info_length))
{
if (number_colormaps != 0)
colormap=(unsigned char *) RelinquishMagickMemory(colormap);
number_planes+plane);
operand++;
if ((offset < 0) ||
- ((offset+operand*number_planes) > (ssize_t) pixel_info_length))
+ ((size_t) (offset+operand*number_planes) > pixel_info_length))
{
if (number_colormaps != 0)
colormap=(unsigned char *) RelinquishMagickMemory(colormap);