Remove OSReadLittle* due to alignment requirements (#6678)
The OSReadLittleInt64 function as defined by Apple reduces down to: `return *(volatile uint64_t *)((uintptr_t)base + byteOffset);` which means we are type-punning using a cast. On ARMv7 and other aligned architectures this can cause crashes. Minimal example: https://gist.github.com/dmaclach/b10b0a71ae614d304c067cb9bd264336 Fixes #6679pull/6680/head
parent
42e0ff5485
commit
a0eb83f590
1 changed files with 10 additions and 2 deletions
Loading…
Reference in new issue