Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ubsan: fix unaligned read in fun.c siphash
ubsan doesn't like it when unaligned reads happen. this commit fixes things to make ubsan happy. NOTE: fix uses `memcpy` which at least some compilers optimize well. See: https://blog.quarkslab.com/unaligned-accesses-in-cc-what-why-and-solutions-to-do-it-properly.html Makes ubsan runtime errors such as the following go away: `runtime error: load of misaligned address 0xb2af29174143 for type 'uint64_t' (aka 'unsigned long'), which requires 8 byte alignment`
- Loading branch information