hash: fix out-of-bound write while freeing key slot
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Thu, 22 Nov 2018 02:51:56 +0000 (20:51 -0600)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 21 Dec 2018 00:53:33 +0000 (01:53 +0100)
commitd5c677db89cc1e6113d55d8bf2300ec8b5f2d383
tree2f627a80fba87467a636814a8b19f9a5d0ce547d
parent0f48ca429bc7a816a6fb8a0d9bd119fe0471788c
hash: fix out-of-bound write while freeing key slot

Add a debug check for out-of-bound write while freeing the key slot.

Coverity issue: 325733
Fixes: e605a1d36ca7 ("hash: add lock-free r/w concurrency")
Cc: stable@dpdk.org
Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Steve Capper <steve.capper@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_hash/rte_cuckoo_hash.c
lib/librte_hash/rte_cuckoo_hash.h