Skip to content

Commit

Permalink
ospfd: CID 1399387 (#1 of 2): Destination buffer too small (STRING_OV…
Browse files Browse the repository at this point in the history
…ERFLOW)

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>
  • Loading branch information
mwinter-osr committed Feb 10, 2017
1 parent b341157 commit 9cbad1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ospfd/ospf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9cbad1d

Please sign in to comment.