mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 13:01:59 +00:00
zebra: string null termination (Coverity 1465494)
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
e4a374681d
commit
32ac96b2ba
@ -212,6 +212,11 @@ static int zebra_ns_notify_read(struct thread *t)
|
||||
continue;
|
||||
if (event->mask & IN_DELETE)
|
||||
return zebra_ns_delete(event->name);
|
||||
if (&event->name[event->len] >= &buf[sizeof(buf)]) {
|
||||
zlog_err("NS notify read: buffer underflow");
|
||||
break;
|
||||
}
|
||||
event->name[event->len] = 0;
|
||||
netnspath = ns_netns_pathname(NULL, event->name);
|
||||
if (!netnspath)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user