| Index: core/fxcodec/lgif/fx_gif.cpp
|
| diff --git a/core/fxcodec/lgif/fx_gif.cpp b/core/fxcodec/lgif/fx_gif.cpp
|
| index b996ba97965a124013933c68bac0916d8f1f6b37..b509c8ccfd36a550ae23272af0af5515f80a999e 100644
|
| --- a/core/fxcodec/lgif/fx_gif.cpp
|
| +++ b/core/fxcodec/lgif/fx_gif.cpp
|
| @@ -118,7 +118,7 @@ int32_t CGifLZWDecoder::Decode(uint8_t* des_buf, uint32_t& des_size) {
|
| if (code == code_clear) {
|
| ClearTable();
|
| continue;
|
| - } else if (code == code_end) {
|
| + } else if (code >= code_end) {
|
| des_size = i;
|
| return 1;
|
| } else {
|
|
|