Home
last modified time | relevance | path

Searched hist:"9 af417610b6142e826fd1ee8ba7ff3e9a2133a5a" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/6lowpan/
H A Ddebugfs.cdiff 9af417610b6142e826fd1ee8ba7ff3e9a2133a5a Mon Jul 12 07:14:40 CDT 2021 Colin Ian King <colin.king@canonical.com> 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 <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>