Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #6679
- Loading branch information