mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
tag the GetPixPairHash64() function for potential uint roll-over
BUG=webp:412 Change-Id: I448583d72378afc0c6fabec45d4f8a2d6164ab15
This commit is contained in:
parent
7d05d6ca91
commit
bf424b46a3
@ -194,7 +194,8 @@ void VP8LHashChainClear(VP8LHashChain* const p) {
|
|||||||
static const uint32_t kHashMultiplierHi = 0xc6a4a793u;
|
static const uint32_t kHashMultiplierHi = 0xc6a4a793u;
|
||||||
static const uint32_t kHashMultiplierLo = 0x5bd1e996u;
|
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;
|
uint32_t key;
|
||||||
key = argb[1] * kHashMultiplierHi;
|
key = argb[1] * kHashMultiplierHi;
|
||||||
key += argb[0] * kHashMultiplierLo;
|
key += argb[0] * kHashMultiplierLo;
|
||||||
|
Loading…
Reference in New Issue
Block a user