]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Ensure we do integer size promotions
authorDonald Sharp <sharpd@nvidia.com>
Thu, 24 Sep 2020 12:07:12 +0000 (08:07 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 6 Oct 2020 12:54:25 +0000 (15:54 +0300)
commitfa1f8426a0b4fb49edc989126cc21b682df5db7f
treecbbff5b4c71a1d332a198d2812b78665b85a8907
parentaa251ea5ebbb740b116b5fdd1a897590fbfa7641
bgpd: Ensure we do integer size promotions

When doing multiplication of (int) * (uint_8t) we can
have overflow and end up in a weird state.  Intentionally
upgrade the type then do the math.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_ecommunity.c