commit | 5bcd754ff8d7947978acb44e77dcab323973fb1e | [log] [tgz] |
---|---|---|
author | Daniel Walton <dwalton@cumulusnetworks.com> | Tue May 19 17:58:10 2015 -0700 |
committer | Paul Jakma <paul.jakma@hpe.com> | Tue Oct 04 13:07:52 2016 +0100 |
tree | 75fab09b53d3d810d327d8569e0f1e289550f941 | |
parent | 6c6c1bf0fc66713cb0b3448a4323042f44016502 [diff] [blame] |
bgpd: crash if attributes alone consume > 4096 bytes This patch fixes a crash if attributes on a patch consume more than 4096 bytes. Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h index 3f6161c..40da02e 100644 --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h
@@ -278,6 +278,8 @@ BGP_PEER_CONFED, } bgp_peer_sort_t; +#define BGP_MAX_PACKET_SIZE_OVERFLOW 1024 + /* BGP neighbor structure. */ struct peer {