]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Ensure stream received has enough data 13781/head
authorDonald Sharp <sharpd@nvidia.com>
Tue, 6 Dec 2022 15:23:11 +0000 (10:23 -0500)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 13 Jun 2023 13:07:42 +0000 (13:07 +0000)
commit4d217e5d288893ca7f0ca415ad196761c120f8d9
tree43c5f75185a3c9c70ac656dc95fb2fdb842e77a1
parentb62ba9495c94356dad582e346fecbd247212aead
bgpd: Ensure stream received has enough data

BGP_PREFIX_SID_SRV6_L3_SERVICE attributes must not
fully trust the length value specified in the nlri.
Always ensure that the amount of data we need to read
can be fullfilled.

Reported-by: Iggy Frankovic <iggyfran@amazon.com>
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 06431bfa7570f169637ebb5898f0b0cc3b010802)
bgpd/bgp_attr.c