]> git.puffer.fish Git - matthieu/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)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 25 Mar 2022 11:44:55 +0000 (07:44 -0400)
commit5c111a25d4ee8cfa2982c5419163e0ab9a198ebf
treefd7bc6d8f7e1eb1bd2750f49916b4c1ae9f3da7e
parentb15250ccfd1d3a5e6cb083353c0078293d3dd9a2
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