mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix unsigned offset overflow
This commit is contained in:
+1
-1
@@ -69310,7 +69310,7 @@ static MA_INLINE ma_uint32 ma_hash_getblock(const ma_uint32* blocks, int i)
|
||||
ma_uint32 block;
|
||||
|
||||
/* Try silencing a sanitization warning about unaligned access by doing a memcpy() instead of assignment. */
|
||||
MA_COPY_MEMORY(&block, ma_offset_ptr(blocks, i * sizeof(block)), sizeof(block));
|
||||
MA_COPY_MEMORY(&block, ma_offset_ptr(blocks, i * (int) sizeof(block)), sizeof(block));
|
||||
|
||||
if (ma_is_little_endian()) {
|
||||
return block;
|
||||
|
||||
Reference in New Issue
Block a user