Fix: jhash.h: remove out-of-bound reads
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Feb 2020 00:31:41 +0000 (19:31 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Feb 2020 01:19:49 +0000 (20:19 -0500)
commit5938665d83cb964348bc4761abfd778ec5bd068d
tree830e34b0fe580c5aa07a229e394aef0a4c079a0b
parent85b4ad5854c5ca958482cfaec1b3875f7db72a67
Fix: jhash.h: remove out-of-bound reads

jhash.h implements "special" code for valgrind because it reads memory
out-of-bound (and then applies a mask) when reading strings.

Considering that lttng-ust does not use jhash.h in a fast-path, remove
this "optimization" and use the verifiable VALGRIND code instead. This
fixes an ASan splat.

Fixes: #1238
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/jhash.h
This page took 0.024113 seconds and 4 git commands to generate.