mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
(MAXPACKET): Increase minimum value from 1024 to 65536, to avoid buffer overrun.
This commit is contained in:
parent
2a56ae9f1e
commit
e2dced828e
@ -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. */
|
||||
|
@ -92,10 +92,10 @@
|
||||
#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
|
||||
|
@ -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
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user