Re: [dpdk-dev] [PATCH v4] rib: fix max depth IPv6 lookup

2021-06-24 Thread David Marchand
On Wed, Jun 23, 2021 at 5:17 PM wrote: > > From: Owen Hilyard > > 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 r

[dpdk-dev] [PATCH v4] rib: fix max depth IPv6 lookup

2021-06-23 Thread ohilyard
From: Owen Hilyard 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