]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(MAXPACKET): Increase minimum value from 1024 to 65536, to avoid buffer overrun.
authorUlrich Drepper <drepper@redhat.com>
Sat, 24 Aug 2002 22:29:11 +0000 (22:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 24 Aug 2002 22:29:11 +0000 (22:29 +0000)
resolv/gethnamaddr.c
resolv/nss_dns/dns-host.c
resolv/res_query.c

index ed87155807d8d99d057bd6359272238170f67dd9..8236b144a81224adca2f1a1b4fc3f72d1ba1cdf2 100644 (file)
@@ -115,10 +115,10 @@ static void map_v4v6_hostent __P((struct hostent *hp, char **bp, int *len));
 extern void addrsort __P((char **, int));
 #endif
 
-#if PACKETSZ > 1024
+#if PACKETSZ > 65536
 #define        MAXPACKET       PACKETSZ
 #else
-#define        MAXPACKET       1024
+#define        MAXPACKET       65536
 #endif
 
 /* As per RFC 1034 and 1035 a host name cannot exceed 255 octets in length.  */
index 77441f75896e340279fbceaabd7de7988a213dd2..fafe3435c0589bf64a188e69698da25fed93b7f4 100644 (file)
 #define MAX_NR_ALIASES 48
 #define MAX_NR_ADDRS   48
 
-#if PACKETSZ > 1024
+#if PACKETSZ > 65536
 # define MAXPACKET     PACKETSZ
 #else
-# define MAXPACKET     1024
+# define MAXPACKET     65536
 #endif
 /* As per RFC 1034 and 1035 a host name cannot exceed 255 octets in length.  */
 #ifdef MAXHOSTNAMELEN
index 92a90d6d8a837ad4ec11949a531904d46f6d1924..866a2bba551cacad38789edc2ef2b80b9b5d4990 100644 (file)
@@ -85,10 +85,10 @@ static const char rcsid[] = "$BINDId: res_query.c,v 8.20 2000/02/29 05:39:12 vix
 /* Options.  Leave them on. */
 /* #undef DEBUG */
 
-#if PACKETSZ > 1024
+#if PACKETSZ > 65536
 #define MAXPACKET      PACKETSZ
 #else
-#define MAXPACKET      1024
+#define MAXPACKET      65536
 #endif
 
 /*