]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Fix possible insufficient stream data
authorDonald Sharp <sharpd@nvidia.com>
Fri, 25 Mar 2022 11:44:55 +0000 (07:44 -0400)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 28 Mar 2022 11:08:34 +0000 (14:08 +0300)
commit15c150743cf4c4d1bf772eb025e6684497ca4ba6
tree3e70a599ecf4d08b650cfc11dcf5db6d84a9dd5b
parentdcfecf64447478883700efc279feddded46e2f7e
bgpd: Fix possible insufficient stream data

When reading the BGP_PREFIX_SID_SRV6_L3_SERVICE_SID_STRUCTURE
it is possible that the length read in the packet is insufficiently
large enough to read a BGP_PREFIX_SID_SRV6_L3_SERVICE_SID_STRUCTURE.
Let's ensure that it is.

Fixes: #10860
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_attr.c