]> git.puffer.fish Git - matthieu/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)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 24 Sep 2020 12:07:12 +0000 (08:07 -0400)
commit8da920d3c06c8c05f4cc72f2514cb85e21c4ba60
treee217543e08b145aae9994761b9ece5232b2f6fdc
parentf12296baacce01d8ba851bd541b51aa16ca7fdd9
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