mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
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
This commit is contained in:
parent
d31439ac31
commit
2b8e0cf85e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36408
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= zebra
|
||||
PORTVERSION= 0.89a
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
|
||||
# you might need debugging, it's a developer release !
|
||||
|
18
net/zebra-devel/files/patch-001_vty_memory_leak
Normal file
18
net/zebra-devel/files/patch-001_vty_memory_leak
Normal file
@ -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
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= zebra
|
||||
PORTVERSION= 0.89a
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
|
||||
# you might need debugging, it's a developer release !
|
||||
|
18
net/zebra-pj/files/patch-001_vty_memory_leak
Normal file
18
net/zebra-pj/files/patch-001_vty_memory_leak
Normal file
@ -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
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= zebra
|
||||
PORTVERSION= 0.89a
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
|
||||
# you might need debugging, it's a developer release !
|
||||
|
18
net/zebra/files/patch-001_vty_memory_leak
Normal file
18
net/zebra/files/patch-001_vty_memory_leak
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user