Browse Source

lzw: fix potential integer overflow.

tags/n0.11
Ronald S. Bultje 14 years ago
parent
commit
0399fe0fd2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/lzw.c

+ 1
- 1
libavcodec/lzw.c View File

@@ -102,7 +102,7 @@ void ff_lzw_decode_tail(LZWState *p)

if(s->mode == FF_LZW_GIF) {
while (s->bs > 0) {
if (s->pbuf + s->bs >= s->ebuf) {
if (s->bs >= s->ebuf - s->pbuf) {
s->pbuf = s->ebuf;
break;
} else {


Loading…
Cancel
Save