diff options
Diffstat (limited to 'sys-libs/glibc/files/glibc-2.2.5-dns-network-overflow.diff')
-rw-r--r-- | sys-libs/glibc/files/glibc-2.2.5-dns-network-overflow.diff | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-libs/glibc/files/glibc-2.2.5-dns-network-overflow.diff b/sys-libs/glibc/files/glibc-2.2.5-dns-network-overflow.diff new file mode 100644 index 000000000000..5704c8a6259d --- /dev/null +++ b/sys-libs/glibc/files/glibc-2.2.5-dns-network-overflow.diff @@ -0,0 +1,13 @@ +--- libc/resolv/nss_dns/dns-network.c Fri Jul 12 10:18:13 2002 ++++ libc/resolv/nss_dns/dns-network.c Fri Jul 12 10:20:10 2002 +@@ -328,7 +328,9 @@ + } + cp += n; + *alias_pointer++ = bp; +- bp += strlen (bp) + 1; ++ n = strlen (bp) + 1; ++ bp += n; ++ linebuflen -= n; + result->n_addrtype = class == C_IN ? AF_INET : AF_UNSPEC; + ++have_answer; + } |