]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Ensure that bgp open message stream has enough data to read 12250/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 2 Nov 2022 17:24:48 +0000 (13:24 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Wed, 2 Nov 2022 19:47:00 +0000 (19:47 +0000)
commit1fc08fbdb0bcf292ffd16a39f560732bda489790
treedd5f58ea12089fc64c481123b493989e4f15cb33
parent204b951feadd48db6bd2631e99a3f30f491926f9
bgpd: Ensure that bgp open message stream has enough data to read

If a operator receives an invalid packet that is of insufficient size
then it is possible for BGP to assert during reading of the packet
instead of gracefully resetting the connection with the peer.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 766eec1b7accffe2c04a5c9ebb14e9f487bb9f78)
bgpd/bgp_packet.c