Created
October 5, 2023 14:15
-
-
Save wader/a2b22980c1d3d7ffb4e4d213d94e4527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --color -r -u 83b858f83b658bd34eca5d8ad4d145f673ae7e5e.orig/src/network/dns_parse.c 83b858f83b658bd34eca5d8ad4d145f673ae7e5e/src/network/dns_parse.c | |
--- 83b858f83b658bd34eca5d8ad4d145f673ae7e5e.orig/src/network/dns_parse.c 2023-07-18 00:03:38 | |
+++ 83b858f83b658bd34eca5d8ad4d145f673ae7e5e/src/network/dns_parse.c 2023-10-05 13:26:20 | |
@@ -12,7 +12,6 @@ | |
p = r+12; | |
qdcount = r[4]*256 + r[5]; | |
ancount = r[6]*256 + r[7]; | |
- if (qdcount+ancount > 64) return -1; | |
while (qdcount--) { | |
while (p-r < rlen && *p-1U < 127) p++; | |
if (p>r+rlen-6) | |
diff --color -r -u 83b858f83b658bd34eca5d8ad4d145f673ae7e5e.orig/src/network/lookup.h 83b858f83b658bd34eca5d8ad4d145f673ae7e5e/src/network/lookup.h | |
--- 83b858f83b658bd34eca5d8ad4d145f673ae7e5e.orig/src/network/lookup.h 2023-07-18 00:03:38 | |
+++ 83b858f83b658bd34eca5d8ad4d145f673ae7e5e/src/network/lookup.h 2023-10-05 15:15:03 | |
@@ -40,7 +40,7 @@ | |
/* The limit of 48 results is a non-sharp bound on the number of addresses | |
* that can fit in one 512-byte DNS packet full of v4 results and a second | |
* packet full of v6 results. Due to headers, the actual limit is lower. */ | |
-#define MAXADDRS 48 | |
+#define MAXADDRS 480 | |
#define MAXSERVS 2 | |
hidden int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags); | |
diff --color -r -u 83b858f83b658bd34eca5d8ad4d145f673ae7e5e.orig/src/network/lookup_name.c 83b858f83b658bd34eca5d8ad4d145f673ae7e5e/src/network/lookup_name.c | |
--- 83b858f83b658bd34eca5d8ad4d145f673ae7e5e.orig/src/network/lookup_name.c 2023-07-18 00:03:38 | |
+++ 83b858f83b658bd34eca5d8ad4d145f673ae7e5e/src/network/lookup_name.c 2023-10-05 13:26:11 | |
@@ -109,7 +109,7 @@ | |
#define RR_CNAME 5 | |
#define RR_AAAA 28 | |
-#define ABUF_SIZE 4800 | |
+#define ABUF_SIZE 16000 | |
static int dns_parse_callback(void *c, int rr, const void *data, int len, const void *packet, int plen) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment