diff options
Diffstat (limited to 'main/libc0.9.32')
-rw-r--r-- | main/libc0.9.32/resolv.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/libc0.9.32/resolv.patch b/main/libc0.9.32/resolv.patch new file mode 100644 index 0000000000..8b84177d17 --- /dev/null +++ b/main/libc0.9.32/resolv.patch @@ -0,0 +1,13 @@ +diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c +index 84289a6..5107dec 100644 +--- a/libc/inet/resolv.c ++++ b/libc/inet/resolv.c +@@ -689,7 +689,7 @@ int attribute_hidden __decode_dotted(const unsigned char *packet, + + if (used + b + 1 >= dest_len) + return -1; +- if (offset + b + 1 >= packet_len) ++ if (offset + b >= packet_len) + return -1; + memcpy(dest + used, packet + offset, b); + offset += b; |