numam-dpdk/lib/librte_fib
Vladimir Medvedkin 247a38c520 fib: fix possible integer overflow
This commit fixes possible integer overflow for
prev_idx in build_common_root() CID 350596
and
tbl8_idx in write_edge() CID 350597

Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
overflow_before_widen: Potentially overflowing expression tbl8_idx * 256
with type int (32 bits, signed) is evaluated using 32-bit arithmetic,
and then used in a context that expects an expression of
type uint64_t (64 bits, unsigned).

Coverity issue: 350596, 350597
Fixes: c3e12e0f03 ("fib: add dataplane algorithm for IPv6")
Cc: stable@dpdk.org

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
2020-02-06 16:17:14 +01:00
..
dir24_8.c fib: add DIR24-8 dataplane algorithm 2019-11-06 00:11:44 +01:00
dir24_8.h remove blank lines at end of file 2019-11-26 00:12:08 +01:00
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build fib: add dataplane algorithm for IPv6 2019-11-06 00:11:44 +01:00
rte_fib6.c remove blank lines at end of file 2019-11-26 00:12:08 +01:00
rte_fib6.h fib: add dataplane algorithm for IPv6 2019-11-06 00:11:44 +01:00
rte_fib_version.map fib: support IPv6 2019-11-06 00:11:44 +01:00
rte_fib.c fib: add DIR24-8 dataplane algorithm 2019-11-06 00:11:44 +01:00
rte_fib.h fib: add DIR24-8 dataplane algorithm 2019-11-06 00:11:44 +01:00
trie.c fib: fix possible integer overflow 2020-02-06 16:17:14 +01:00
trie.h remove blank lines at end of file 2019-11-26 00:12:08 +01:00