diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-11-15 13:00:58 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-11-15 13:00:58 +0300 |
commit | b033fb329fc14e6469596821508c487e3ed6ff82 (patch) | |
tree | 5115dc2793f1bf771306ea273e056534d90ffbe2 /src/nxt_http_response.c | |
parent | 08e0082e070354919de9584a8d26436a1dadeac0 (diff) | |
download | unit-b033fb329fc14e6469596821508c487e3ed6ff82.tar.gz unit-b033fb329fc14e6469596821508c487e3ed6ff82.tar.bz2 |
Fixed lvlhsh test on 64-bit big-endian systems.
The nxt_murmur_hash2() generated 4-byte hash that was stored in uintptr_t,
which was 8 bytes long on 64-bit systems. At each iteration, it took the
previous key and hashed it again.
The problem was that it took only the first 4 bytes of the key, and these
4 bytes were always zero on 64-bit big-endian system. That resulted in
equal keys at each iteration.
The bug was discovered on IBM/S390x.
Diffstat (limited to 'src/nxt_http_response.c')
0 files changed, 0 insertions, 0 deletions