Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Casting a char* to a struct containing a uint32_t is not universally safe due to alignment constraints on reads on some platforms. Copy our possibly unaligned source data into an aligned area of memory to avoid SIGBUS on armhf. Reported by vorlonofportland in PR#403. This commit the John's optimized version of Vorlon's proposed fix.
- Loading branch information