diff options
-rw-r--r-- | core/fxcodec/bmp/cfx_bmpdecompressor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/bmp/cfx_bmpdecompressor.cpp b/core/fxcodec/bmp/cfx_bmpdecompressor.cpp index b97dab18ce..d5d96de65d 100644 --- a/core/fxcodec/bmp/cfx_bmpdecompressor.cpp +++ b/core/fxcodec/bmp/cfx_bmpdecompressor.cpp @@ -91,7 +91,7 @@ int32_t CFX_BmpDecompressor::ReadHeader() { Error(); NOTREACHED(); } - if (avail_in_ < sizeof(uint32_t)) { + if (avail_in_ < skip_size_ + sizeof(uint32_t)) { skip_size_ = skip_size_org; return 2; } |