mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
bug 157989. patch from paper@animecity.nu. r=pavlov sr=tor@acm.org a=brendan/chofmann
This commit is contained in:
parent
21d39b52f2
commit
0fb6641246
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user