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: c7eb0972e7
("test/hash: add lock-free r/w concurrency")
Cc: stable@dpdk.org
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
96c3a92809
commit
8343fd749f
@ -59,7 +59,7 @@ struct rwc_perf {
|
||||
uint32_t w_ks_r_hit_nsp[2][NUM_TEST];
|
||||
uint32_t w_ks_r_hit_sp[2][NUM_TEST];
|
||||
uint32_t w_ks_r_miss[2][NUM_TEST];
|
||||
uint32_t multi_rw[NUM_TEST - 1][2][NUM_TEST];
|
||||
uint32_t multi_rw[NUM_TEST][2][NUM_TEST];
|
||||
uint32_t w_ks_r_hit_extbkt[2][NUM_TEST];
|
||||
uint32_t writer_add_del[NUM_TEST];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user