sanitize util_hthash with a hack

To silence the address sanitizer.
Since this is gone in the master branch anyway this will
have to do.
This commit is contained in:
Wolfgang Bumiller 2017-02-14 19:23:02 +01:00
parent 0258612815
commit e160c9ed7a

4
stat.c
View file

@ -416,7 +416,9 @@ GMQCC_INLINE size_t util_hthash(hash_table_t *ht, const char *key) {
uint32_t h = 0x1EF0 ^ len;
for (i = -((int)block); i; i++) {
k = blocks[i];
uint32_t hack;
memcpy(&hack, &blocks[i], sizeof(hack));
k = hack;
k *= mask1;
k = GMQCC_ROTL32(k, 15);
k *= mask2;