c02462d8a3
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:
|
||
---|---|---|
.. | ||
Makefile | ||
bpf.c | ||
devlink.c | ||
fib.c | ||
ipsec.c | ||
netdev.c | ||
netdevsim.h |