silence clib_mem_unaligned() invalid read found by address-sanitizer 13/9213/3
authorGabriel Ganne <gabriel.ganne@enea.com>
Fri, 3 Nov 2017 09:30:45 +0000 (10:30 +0100)
committerJohn Lo <loj@cisco.com>
Fri, 3 Nov 2017 14:16:15 +0000 (14:16 +0000)
commitc5c2bb3f042fe11184faa731b6209444e2c05231
treed4ac9a475233a6a0e80defe5212ec0deae5b0601
parenta30d903956d387b9c5e97f4b50d1166361fb33da
silence clib_mem_unaligned() invalid read found by address-sanitizer

clib_mem_unaligned + zap64 casts its input as u64, computes a mask
according to the input length, and returns the casted maked value.
Therefore all the 8 Bytes of the u64 are systematically read, and
the invalid ones are discarded.

Since they are discarded correctly, this invalid read can safely be
ignored.

Revert "fix clib_mem_unaligned() invalid read"
This reverts commit 0ed3d81a5fa274283ae69b69a405c385189897d3.

Change-Id: I5cc33ad36063c414085636debe93707d9a75157a
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
src/vppinfra/hash.c