tag the GetPixPairHash64() function for potential uint roll-over

BUG=webp:412

Change-Id: I448583d72378afc0c6fabec45d4f8a2d6164ab15
This commit is contained in:
Skal 2019-01-23 21:29:54 +01:00
parent 7d05d6ca91
commit bf424b46a3

View File

@ -194,7 +194,8 @@ void VP8LHashChainClear(VP8LHashChain* const p) {
static const uint32_t kHashMultiplierHi = 0xc6a4a793u;
static const uint32_t kHashMultiplierLo = 0x5bd1e996u;
static WEBP_INLINE uint32_t GetPixPairHash64(const uint32_t* const argb) {
static WEBP_UBSAN_IGNORE_UNSIGNED_OVERFLOW WEBP_INLINE
uint32_t GetPixPairHash64(const uint32_t* const argb) {
uint32_t key;
key = argb[1] * kHashMultiplierHi;
key += argb[0] * kHashMultiplierLo;