MagickBooleanType
status;
- if ((p < pixels) || (p >= q))
+ if ((p < pixels) || (p > q))
break;
count=ReadBlobByte(image);
if (count == EOF)
/*
Delta mode.
*/
- byte=ReadBlobByte(image);
- if (byte == EOF)
- break;
- x+=byte;
- byte=ReadBlobByte(image);
- if (byte == EOF)
- break;
- y+=byte;
+ x+=ReadBlobByte(image);
+ y+=ReadBlobByte(image);
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++)
{
q=pixels+number_pixels;
for (y=0; y < (ssize_t) image->rows; )
{
- MagickBooleanType
- status;
-
if ((p < pixels) || (p >= q))
break;
count=ReadBlobByte(image);
break;
if (count > 0)
{
+ count=(int) MagickMin((size_t) count,(size_t) (q-p));
/*
Encoded mode.
*/
- count=(int) MagickMin((size_t) count,(size_t) (q-p));
byte=ReadBlobByte(image);
if (byte == EOF)
break;
Escape mode.
*/
count=ReadBlobByte(image);
- if (count == EOF)
- break;
if (count == 0x01)
return(MagickTrue);
switch (count)
/*
Delta mode.
*/
- byte=ReadBlobByte(image);
- if (byte == EOF)
- break;
- x+=byte;
- byte=ReadBlobByte(image);
- if (byte == EOF)
- break;
- y+=byte;
+ x+=ReadBlobByte(image);
+ y+=ReadBlobByte(image);
p=pixels+y*image->columns+x;
break;
}
Absolute mode.
*/
count=(int) MagickMin((size_t) count,(size_t) (q-p));
- if (count < 0)
- break;
if (compression == BI_RLE8)
for (i=0; i < (ssize_t) count; i++)
{
}
}
}
- status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y,
- image->rows);
- if (status == MagickFalse)
+ if (SetImageProgress(image,LoadImageTag,(MagickOffsetType) y,image->rows) == MagickFalse)
break;
}
(void) ReadBlobByte(image); /* end of line */
(void) ReadBlobByte(image);
- return(y < (ssize_t) image->rows ? MagickFalse : MagickTrue);
+ return(MagickTrue);
}
\f
/*