]> git.ipfire.org Git - thirdparty/bind9.git/commit
Simplify hash computation to prevent pointer being classed as tainted.
authorMark Andrews <marka@isc.org>
Mon, 17 Feb 2020 22:40:21 +0000 (09:40 +1100)
committerMark Andrews <marka@isc.org>
Thu, 27 Feb 2020 22:06:09 +0000 (09:06 +1100)
commitaace42d6633fb5656f99046bb3cdbb39c3f324c5
tree338a09db3644aa076388e56730b9b8ad356e5e94
parent099540b8f5022b68ae552e94503bc1954f7985b8
Simplify hash computation to prevent pointer being classed as tainted.

mem.c:add_trace_entry() -> isc_hash_function() -> isc_siphash24()

129        for (; in != end; in += 8) {

6. byte_swapping: Performing a byte swapping operation on
in implies that it came from an external source, and is
therefore tainted.

130                uint64_t m = U8TO64_LE(in);

(cherry picked from commit 8c983a7ebd562f9e45a2b8ca623167b179bfd98f)
lib/isc/mem.c