doc/share/security/patches/SA-08:02/libc.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

19 lines
588 B
Diff

Index: lib/libc/inet/inet_network.c
===================================================================
RCS file: /home/ncvs/src/lib/libc/inet/inet_network.c,v
retrieving revision 1.4
diff -u -u -r1.4 inet_network.c
--- lib/libc/inet/inet_network.c 3 Jun 2007 17:20:26 -0000 1.4
+++ lib/libc/inet/inet_network.c 6 Jan 2008 15:38:28 -0000
@@ -82,9 +82,9 @@
}
if (!digit)
return (INADDR_NONE);
+ if (pp >= parts + 4 || val > 0xffU)
+ return (INADDR_NONE);
if (*cp == '.') {
- if (pp >= parts + 4 || val > 0xffU)
- return (INADDR_NONE);
*pp++ = val, cp++;
goto again;
}