diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-20 20:28:39 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-21 01:14:33 +0200 |
commit | 2b7165e76f78b4b92e7ec09de26d96c3e0c5849f (patch) | |
tree | 8835752ea32b4c6b2c2900749b5992cb8f1785b7 /zebra/zebra_netns_notify.c | |
parent | *: manually remove some more sprintf (diff) | |
download | frr-2b7165e76f78b4b92e7ec09de26d96c3e0c5849f.tar.xz frr-2b7165e76f78b4b92e7ec09de26d96c3e0c5849f.zip |
*: use appropriate buffer sizes, specifiers
- Fix 1 byte overflow when showing GR info in bgpd
- Use PATH_MAX for path buffers
- Use unsigned specifiers for uint16_t's in zebra pbr
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_netns_notify.c')
-rw-r--r-- | zebra/zebra_netns_notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_netns_notify.c b/zebra/zebra_netns_notify.c index 2e0f9cd3f..c5d11f183 100644 --- a/zebra/zebra_netns_notify.c +++ b/zebra/zebra_netns_notify.c @@ -153,7 +153,7 @@ static int zebra_ns_delete(char *name) static int zebra_ns_notify_self_identify(struct stat *netst) { - char net_path[64]; + char net_path[PATH_MAX]; int netns; snprintf(net_path, sizeof(net_path), "/proc/self/ns/net"); |