]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Ensure stream received has enough data 13782/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:43 +0000 (13:07 +0000)
commit406de643d7a943fe11a3eea9cd9ae6a8b12369bb
tree35e862deb6893cdcfb4ba67222167cb24e1dc62b
parent7a6f6fca206f6bfd469bd3004e00f4cfa7c24b70
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