diff options
author | andreas <andreas@FreeBSD.org> | 2000-12-27 14:19:33 +0000 |
---|---|---|
committer | andreas <andreas@FreeBSD.org> | 2000-12-27 14:19:33 +0000 |
commit | b933a030362f4579fab42ec6f0987773c2053834 (patch) | |
tree | a6c3d26653f2e02124f7b4b9d360a03fc15b5236 /net/zebra-pj/files | |
parent | f1a65c8c96f21fad98f82846ac5451af7f436e3e (diff) | |
download | FreeBSD-ports-b933a030362f4579fab42ec6f0987773c2053834.zip FreeBSD-ports-b933a030362f4579fab42ec6f0987773c2053834.tar.gz |
Fix vty memory leak
Patch in PR contains typo, got clean patch from zebra anon cvs server
Wrote e-mail to security officer and freebsd-audit to ask for
a) review
b) what to do next (FreeBSD Ports Security Advisory?...)
concerning a) the author of zebra already ok'd the patch.
converning b) waiting for SO or fbsd-auditers to respond
PR: 23856
Submitted by: Vincent Poy <vince@oahu.WURLDLINK.NET>
Reviewed by: Kunihiro Ishiguro <kunihiro@zebra.org>
Approved by: Kunihiro Ishiguro <kunihiro@zebra.org>
Obtained from: PR (partly) + zebra anon cvs server
Diffstat (limited to 'net/zebra-pj/files')
-rw-r--r-- | net/zebra-pj/files/patch-001_vty_memory_leak | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/zebra-pj/files/patch-001_vty_memory_leak b/net/zebra-pj/files/patch-001_vty_memory_leak new file mode 100644 index 0000000..1800c6f --- /dev/null +++ b/net/zebra-pj/files/patch-001_vty_memory_leak @@ -0,0 +1,18 @@ +--- vty.c.orig Tue Sep 26 23:03:12 2000 ++++ vty.c Tue Dec 26 23:18:00 2000 +@@ -1850,10 +1849,13 @@ + printf ("line: %s\n", buf); + #endif /* VTYSH_DEBUG */ + ++ vty_ensure (vty, nbytes); ++ memcpy (vty->buf, buf, nbytes); ++ + /* Pass this line to parser. */ +- vty->buf = buf; + ret = vty_execute (vty); +- vty->buf = NULL; ++ ++ vty_clear_buf (vty); + + /* Return result. */ + #ifdef VTYSH_DEBUG |