diff options
| author | Colin Ian King <[email protected]> | 2018-06-30 21:39:24 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-07-02 20:35:33 +0900 |
| commit | c02462d8a3e96d99967fb26fca7375d449328ce6 (patch) | |
| tree | b2f16ab0e4ee8515a885314343cd9cd4638fd5aa /tools/perf/scripts/python | |
| parent | 97680ade43dc6a8ad2451389d66b0492458196d4 (diff) | |
netdevsim: fix sa_idx out of bounds check
Currently if sa_idx is equal to NSIM_IPSEC_MAX_SA_COUNT then
an out-of-bounds read on ipsec->sa will occur. Fix the
incorrect bounds check by using >= rather than >.
Detected by CoverityScan, CID#1470226 ("Out-of-bounds-read")
Fixes: 7699353da875 ("netdevsim: add ipsec offload testing")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Shannon Nelson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions