This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: More fixes for inet_network



Uli,

you misapplied my patch to glibc 2.2.  Please add this missing part.

Thanks,
Andreas

Index: inet/inet_net.c
===================================================================
RCS file: /cvs/glibc/libc/inet/inet_net.c,v
retrieving revision 1.9
diff -u -r1.9 inet_net.c
--- inet_net.c	2000/02/11 18:39:06	1.9
+++ inet_net.c	2000/02/12 07:04:43
@@ -83,6 +83,8 @@
 	}
 	if (*cp && !isspace(*cp))
 		return (INADDR_NONE);
+	if (pp >= parts + 4 || val > 0xff)
+	  return (INADDR_NONE);
 	*pp++ = val;
 	n = pp - parts;
 	for (val = 0, i = 0; i < n; i++) {

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]