]> git.ipfire.org Git - thirdparty/systemd.git/commit
siphash24: fix memory alignment
authorDaniel Mack <daniel@zonque.org>
Mon, 16 Nov 2015 12:08:34 +0000 (13:08 +0100)
committerDaniel Mack <daniel@zonque.org>
Mon, 16 Nov 2015 14:19:23 +0000 (15:19 +0100)
commit8dd85afe761885a9c47173cdafd1b7f9b36d08e6
tree7e053044a8a8c9bdcc997200f736afe48998b1ad
parent7f034e980de9192d0c7e163de934f19d2f7d3277
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