]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Ensure that bgp open message stream has enough data to read 12249/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:46:40 +0000 (19:46 +0000)
commit6c4ca9812976596bf8b5226600269fc4031f1422
treef0d356af0be1fd5f4bd3392276ee4601656c7894
parent8daf53f6836c445e5953bac4d218ef559095aba4
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