mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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:
|
||
---|---|---|
.. | ||
bpf.c | ||
devlink.c | ||
fib.c | ||
ipsec.c | ||
Makefile | ||
netdev.c | ||
netdevsim.h |