mirror of
https://github.com/webmproject/libwebp.git
synced 2026-04-09 14:22:31 +02:00
Fix potential overflow in FramesAreSimilar
Bug: 496807858 Change-Id: Idc9af6f86a171322dd09e197dafbef59d5e4aa53
This commit is contained in:
@@ -73,6 +73,9 @@ void GetAnimatedImageVersions(int* const decoder_version,
|
||||
// Check whether val1 * val2 fits in a size_t. Returns 1 on success.
|
||||
int CheckMultiplicationOverflow(uint32_t val1, uint32_t val2, size_t* product);
|
||||
|
||||
// Check whether val1 + val2 fits in a size_t. Returns 1 on success.
|
||||
int CheckAdditionOverflow(size_t val1, uint32_t val2, size_t* addition);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user