MagickBooleanType
status;
- if ((p < pixels) || (p > q))
+ if ((p < pixels) || (p >= q))
break;
count=ReadBlobByte(image);
if (count == EOF)
/*
Delta mode.
*/
- x+=ReadBlobByte(image);
- y+=ReadBlobByte(image);
+ byte=ReadBlobByte(image);
+ if (byte == EOF)
+ break;
+ x+=byte;
+ byte=ReadBlobByte(image);
+ if (byte == EOF)
+ break;
+ y+=byte;
p=pixels+y*image->columns+x;
break;
}
Absolute mode.
*/
count=(int) MagickMin((ssize_t) count,(ssize_t) (q-p));
+ if (count < 0)
+ break;
if (compression == BI_RLE8)
for (i=0; i < (ssize_t) count; i++)
{