mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 18:35:41 +01:00 
			
		
		
		
	tag the GetPixPairHash64() function for potential uint roll-over
BUG=webp:412 Change-Id: I448583d72378afc0c6fabec45d4f8a2d6164ab15
This commit is contained in:
		| @@ -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; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user