9af417610b
The bounds check of id is off-by-one and the comparison should
be >= rather >. Currently the WARN_ON_ONCE check does not stop
the out of range indexing of &ldev->ctx.table[id] so also add
a return path if the bounds are out of range.
Addresses-Coverity: ("Illegal address computation").
Fixes:
|
||
---|---|---|
.. | ||
6lowpan_i.h | ||
Kconfig | ||
Makefile | ||
core.c | ||
debugfs.c | ||
iphc.c | ||
ndisc.c | ||
nhc.c | ||
nhc.h | ||
nhc_dest.c | ||
nhc_fragment.c | ||
nhc_ghc_ext_dest.c | ||
nhc_ghc_ext_frag.c | ||
nhc_ghc_ext_hop.c | ||
nhc_ghc_ext_route.c | ||
nhc_ghc_icmpv6.c | ||
nhc_ghc_udp.c | ||
nhc_hop.c | ||
nhc_ipv6.c | ||
nhc_mobility.c | ||
nhc_routing.c | ||
nhc_udp.c |