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/6685/head
parent
5846439713
commit
4702ba9043
1 changed files with 10 additions and 2 deletions
Loading…
Reference in new issue