diff options
| author | Martin Winter <mwinter@opensourcerouting.org> | 2017-02-03 23:05:11 +0700 |
|---|---|---|
| committer | Martin Winter <mwinter@opensourcerouting.org> | 2017-02-10 16:53:18 +0700 |
| commit | 9cbad1d7c462035d3e561347f6f62d85b1a8f33a (patch) | |
| tree | 2084fe006cf4f6f3a101760374ccf868e78b5abc | |
| parent | b3411578b063894892d469dfda8cad02a2ecd0ed (diff) | |
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>
| -rw-r--r-- | ospfd/ospf_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c index cc335a8abd..edb1ca470e 100644 --- a/ospfd/ospf_main.c +++ b/ospfd/ospf_main.c @@ -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); |
