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:43 +0000 (20:19 -0500)
commitec9e040d128545d43b7d29106b70581bca42b1c3
treeb1ab68b5ef5bd6684a6544c386130e3b3263e18e
parente5ea8cce4f1f61781f00636b36f5c5694cfe5db5
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.02541 seconds and 5 git commands to generate.