Misaligned address in siphash.c
Compiling BIND with the "-O -g -fsanitize=address" flags and running the unit tests (on a Mac) generated in the "named.run" files a number of instances of the message:
siphash.c:44:16: runtime error: load of misaligned address 0x000101e45024 for type 'const uint64_t'
(aka 'const unsigned long long'), which requires 8 byte alignment
The code in question is:
40 void
41 isc_siphash24(const uint8_t *k, const uint8_t *in, size_t inlen, uint8_t *out)
42 {
43 const uint64_t *key = (const uint64_t *)k;
44 uint64_t k0 = le64toh(key[0]);
45 uint64_t k1 = le64toh(key[1]);
The address varied in each message.
Edited by Stephen Morris