]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Make sure we have enough data to handle extended link bandwidth
authorDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 26 May 2024 15:49:22 +0000 (18:49 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 26 May 2024 15:49:22 +0000 (18:49 +0300)
commit0f5834d49960807881ec1c8020349476255f2271
tree94b5a7819c0eb58dd848af9c99a853d6555f8e07
parent3d21e3ebf17c1046839d4c26966c3c7547dc2091
bgpd: Make sure we have enough data to handle extended link bandwidth

Extended link bandwidth is encoded inside extended community as a ipv6-address
specific extended community, but with a malformed packet we should do the
sanity check here to have enough data. Especially before doing ptr_get_be64().

Reported-by: Iggy Frankovic <iggyfran@amazon.com>
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_ecommunity.c