mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
lzw: fix potential integer overflow.
This commit is contained in:
parent
b7b1509d06
commit
0399fe0fd2
@ -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…
Reference in New Issue
Block a user