]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: avoid allocating very large stack buffer 8570/head
authorQuentin Young <qlyoung@nvidia.com>
Mon, 26 Apr 2021 22:59:48 +0000 (18:59 -0400)
committerQuentin Young <qlyoung@nvidia.com>
Thu, 29 Apr 2021 16:12:32 +0000 (12:12 -0400)
commit338f4a78cc0078e5f59780fe883084c26842157b
treee629cb1aafacc7f7f50e0a83413744e961d45970
parent6c55ee964e600cba385afabb8438b9d09eb509f2
bgpd: avoid allocating very large stack buffer

As pointed out on code review of BGP extended messages, increasing the
maximum BGP message size has the consequence of growing the dynamically
sized stack buffer up to 650K. While unlikely to exceed modern stack
sizes it is still unreasonably large. Remedy this with a heap buffer.

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
bgpd/bgp_io.c
bgpd/bgpd.h