mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-01 10:46:46 +00:00
ospfd: CID 1399387 (#1 of 2): Destination buffer too small (STRING_OVERFLOW)
Coverity: string_overflow: You might overrun the 100-character destination string vty_path by writing 4096 characters from vty_sock_path. Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
parent
b3411578b0
commit
9cbad1d7c4
@ -407,7 +407,7 @@ main (int argc, char **argv)
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy(vty_path, vty_sock_path);
|
||||
strlcpy(vty_path, vty_sock_path, sizeof(vty_path));
|
||||
}
|
||||
vty_serv_sock (vty_addr, vty_port, vty_path);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user