]> git.droids-corp.org - dpdk.git/commit
test/hash: fix out of bound access
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 4 Jun 2022 08:37:11 +0000 (10:37 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 26 Jun 2022 15:18:41 +0000 (17:18 +0200)
commit8343fd749ff7c494c2f303f20a83b8873c6f0797
tree1ba4fdf4dcea03d38d982b4afb197fd60868026f
parent96c3a928096b043a58cc4ecf8c8079b6edf8a0a1
test/hash: fix out of bound access

rwc_non_lf_results->multi_rw, rwc_lf_results->multi_rw, and
rwc_perf_results->multi_rw are accessed at indexes
[0..NUM_TEST-1][0..1][0..NUMTEST-1]. Currently the first index
overflows the array size in struct rwc_perf.

Fixes: c7eb0972e74b ("test/hash: add lock-free r/w concurrency")
Cc: stable@dpdk.org
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
app/test/test_hash_readwrite_lf_perf.c