mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 10:25:46 +01:00 
			
		
		
		
	upsampling_{neon,sse41}: fix int sanitizer warning
fixes warnings of the form:
/src/dsp/upsampling_sse41.c:170:1: runtime error: implicit conversion
  from type 'int' of value -16 (32-bit, signed) to type 'uintptr_t' (aka
  'unsigned long') changed the value to 18446744073709551600 (64-bit,
  unsigned)
this is the same change as was done previously in upsampling_sse2.c:
2ee786c7 upsampling_sse2.c: clear int sanitizer warnings
Change-Id: I36064d837ad1a7a118918c16a5551fc732dec2ff
			
			
This commit is contained in:
		| @@ -197,7 +197,7 @@ static void FUNC_NAME(const uint8_t* top_y, const uint8_t* bottom_y,    \ | |||||||
|   int block;                                                                   \ |   int block;                                                                   \ | ||||||
|   /* 16 byte aligned array to cache reconstructed u and v */                   \ |   /* 16 byte aligned array to cache reconstructed u and v */                   \ | ||||||
|   uint8_t uv_buf[2 * 32 + 15];                                                 \ |   uint8_t uv_buf[2 * 32 + 15];                                                 \ | ||||||
|   uint8_t* const r_uv = (uint8_t*)((uintptr_t)(uv_buf + 15) & ~15);     \ |   uint8_t* const r_uv = (uint8_t*)((uintptr_t)(uv_buf + 15) & ~(uintptr_t)15); \ | ||||||
|   const int uv_len = (len + 1) >> 1;                                           \ |   const int uv_len = (len + 1) >> 1;                                           \ | ||||||
|   /* 9 pixels must be read-able for each block */                              \ |   /* 9 pixels must be read-able for each block */                              \ | ||||||
|   const int num_blocks = (uv_len - 1) >> 3;                                    \ |   const int num_blocks = (uv_len - 1) >> 3;                                    \ | ||||||
|   | |||||||
| @@ -123,7 +123,7 @@ static void FUNC_NAME(const uint8_t* top_y, const uint8_t* bottom_y,           \ | |||||||
|   int uv_pos, pos;                                                             \ |   int uv_pos, pos;                                                             \ | ||||||
|   /* 16byte-aligned array to cache reconstructed u and v */                    \ |   /* 16byte-aligned array to cache reconstructed u and v */                    \ | ||||||
|   uint8_t uv_buf[14 * 32 + 15] = { 0 };                                        \ |   uint8_t uv_buf[14 * 32 + 15] = { 0 };                                        \ | ||||||
|   uint8_t* const r_u = (uint8_t*)((uintptr_t)(uv_buf + 15) & ~15);             \ |   uint8_t* const r_u = (uint8_t*)((uintptr_t)(uv_buf + 15) & ~(uintptr_t)15);  \ | ||||||
|   uint8_t* const r_v = r_u + 32;                                               \ |   uint8_t* const r_v = r_u + 32;                                               \ | ||||||
|                                                                                \ |                                                                                \ | ||||||
|   assert(top_y != NULL);                                                       \ |   assert(top_y != NULL);                                                       \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user