doc/share/security/patches/SA-05:04/ifconf4.patch
Bjoern A. Zeeb 3571e53040 Import FreeBSD Security Advisories and Errata Notices, as well as their
patches for easier mirroring, to eliminate a special copy, to make
www.freebsd.org/security a full copy of security.freebsd.org and be
eventually be the same.

For now files are just sitting there.   The symlinks are missing.

Discussed on:	www (repository location)
Discussed with:	simon (so)
2012-08-15 06:19:40 +00:00

20 lines
618 B
Diff

Index: sys/net/if.c
===================================================================
RCS file: /home/ncvs/src/sys/net/if.c,v
retrieving revision 1.85.2.28
diff -u -p -r1.85.2.28 if.c
--- sys/net/if.c 12 Dec 2004 20:12:50 -0000 1.85.2.28
+++ sys/net/if.c 14 Apr 2005 22:10:46 -0000
@@ -1326,6 +1326,12 @@ ifconf(cmd, data)
char workbuf[64];
int ifnlen, addrs;
+ /*
+ * Zero the ifr_name buffer to make sure we don't
+ * disclose the contents of the stack.
+ */
+ memset(ifr.ifr_name, 0, sizeof(ifr.ifr_name));
+
if (space <= sizeof (ifr))
break;
ifnlen = snprintf(workbuf, sizeof(workbuf),