| Index: core/fxcodec/codec/fx_codec_tiff.cpp
|
| diff --git a/core/fxcodec/codec/fx_codec_tiff.cpp b/core/fxcodec/codec/fx_codec_tiff.cpp
|
| index 09cfea41116576fb2113b23866af5d50d61877b1..20fda6308ff95d6c444ca76508a6563962918292 100644
|
| --- a/core/fxcodec/codec/fx_codec_tiff.cpp
|
| +++ b/core/fxcodec/codec/fx_codec_tiff.cpp
|
| @@ -79,6 +79,10 @@ int _TIFFmemcmp(const void* ptr1, const void* ptr2, tmsize_t size) {
|
| return FXSYS_memcmp(ptr1, ptr2, (size_t)size);
|
| }
|
|
|
| +int _TIFFIfMultiplicationOverflow(tmsize_t op1, tmsize_t op2) {
|
| + return op1 > std::numeric_limits<tmsize_t>::max() / op2;
|
| +}
|
| +
|
| TIFFErrorHandler _TIFFwarningHandler = nullptr;
|
| TIFFErrorHandler _TIFFerrorHandler = nullptr;
|
|
|
|
|