[dpdk-dev] [dpdk-stable] [PATCH v2] fib: fix possible integer overflow

Thomas Monjalon thomas at monjalon.net
Thu Feb 6 16:15:08 CET 2020


21/01/2020 16:07, Vladimir Medvedkin:
> 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: c3e12e0f0354 ("fib: add dataplane algorithm for IPv6")
> Cc: vladimir.medvedkin at intel.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>

Applied, thanks





More information about the dev mailing list