summaryrefslogtreecommitdiff
path: root/zebra/zebra_netns_notify.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-07-18 09:45:08 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-07-18 09:45:08 -0400
commitf177a83efca0db4757a89e797f233f19b81e1255 (patch)
tree0d004bef69c56ff7f55b135df3a15ea0cb2347e2 /zebra/zebra_netns_notify.c
parent55528234eae823d14b808527d90fa003cd424552 (diff)
zebra: Possible write beyond buffer length
Prevent string manipulation where we might have data passed into that is larger than the buffer we are pushing into. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_netns_notify.c')
-rw-r--r--zebra/zebra_netns_notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_netns_notify.c b/zebra/zebra_netns_notify.c
index 4e504c48b0..995fa6fb5a 100644
--- a/zebra/zebra_netns_notify.c
+++ b/zebra/zebra_netns_notify.c
@@ -185,7 +185,7 @@ static bool zebra_ns_notify_is_default_netns(const char *name)
{
struct stat default_netns_stat;
struct stat st;
- char netnspath[64];
+ char netnspath[PATH_MAX];
if (zebra_ns_notify_self_identify(&default_netns_stat))
return false;