aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-07-12 13:14:40 +0100
committerMarcel Holtmann <[email protected]>2021-07-22 16:19:03 +0200
commit9af417610b6142e826fd1ee8ba7ff3e9a2133a5a (patch)
tree4a9dcdf7b326587e5a57bc53a275f864edad9225 /tools/perf/scripts/python/bin
parent373568276007aa23840b142b28a469e452ecfad3 (diff)
6lowpan: iphc: Fix an off-by-one check of array index
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: 5609c185f24d ("6lowpan: iphc: add support for stateful compression") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions