mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 01:47:29 +00:00
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>
This commit is contained in:
parent
55528234ea
commit
f177a83efc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user