chiark / gitweb /
siphash24: fix memory alignment
authorDaniel Mack <daniel@zonque.org>
Mon, 16 Nov 2015 12:08:34 +0000 (13:08 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 26 Apr 2017 10:58:55 +0000 (12:58 +0200)
commitbc862a48dfd0c56cfdfefcf400dc92464e135a64
tree49f1a9416622835d9d574788d01e7f5a6f7c8477
parent75b4f90262d9c6cfc354f204d9981393daf08f98
siphash24: fix memory alignment

Use unaligned_read_le64() to access input buffer when reading complete
64-bit words.

This should fix memory traps on platforms with strict aliasing.
src/basic/siphash24.c