bug 157989. patch from paper@animecity.nu. r=pavlov sr=tor@acm.org a=brendan/chofmann

This commit is contained in:
pavlov%netscape.com 2002-07-23 03:22:27 +00:00
parent 21d39b52f2
commit 0fb6641246

View File

@ -315,6 +315,8 @@ do_lzw(gif_struct *gs, const PRUint8 *q)
PRUint8 *rowend = gs->rowend;
PRUintn rows_remaining = gs->rows_remaining;
if (rowp == rowend)
return 0;
#define OUTPUT_ROW(gs) \
{ \
@ -1190,6 +1192,10 @@ PRStatus gif_write(gif_struct *gs, const PRUint8 *buf, PRUint32 len)
{
height = gs->screen_height;
width = gs->screen_width;
if (!height || !width) {
gs->state = gif_error;
break;
}
}
gs->height = height;