numam-dpdk/lib/rib
Owen Hilyard 03b8372a9a rib: fix max depth IPv6 lookup
ASAN found a stack buffer overflow in lib/rib/rte_rib6.c:get_dir.
The fix for the stack buffer overflow was to make sure depth
was always < 128, since when depth = 128 it caused the index
into the ip address to be 16, which read off the end of the array.

While trying to solve the buffer overflow, I noticed that a few
changes could be made to remove the for loop entirely.

Fixes: f7e861e21c ("rib: support IPv6")
Cc: stable@dpdk.org

Signed-off-by: Owen Hilyard <ohilyard@iol.unh.edu>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
2021-06-24 15:34:45 +02:00
..
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_rib6.c rib: fix max depth IPv6 lookup 2021-06-24 15:34:45 +02:00
rte_rib6.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_rib.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_rib.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00