summaryrefslogtreecommitdiff
path: root/patches/glibc/compat-2.1/rh62-09-glibc-compat-2.1.3-security2.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-02-24 11:00:05 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-02-24 11:00:05 (GMT)
commit1906cf93f86d8d66f45f90380a8d3da25c087ee5 (patch)
tree90916c99abe1f1ec26709ee420e6c349eda4670a /patches/glibc/compat-2.1/rh62-09-glibc-compat-2.1.3-security2.patch
parent2609573aede4ce198b3462976725b25eb1637d2e (diff)
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!". Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup. That means I'm putting backups in place in the afternoon. That also means we've lost history... :-(
Diffstat (limited to 'patches/glibc/compat-2.1/rh62-09-glibc-compat-2.1.3-security2.patch')
-rw-r--r--patches/glibc/compat-2.1/rh62-09-glibc-compat-2.1.3-security2.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/patches/glibc/compat-2.1/rh62-09-glibc-compat-2.1.3-security2.patch b/patches/glibc/compat-2.1/rh62-09-glibc-compat-2.1.3-security2.patch
new file mode 100644
index 0000000..a16b4af
--- /dev/null
+++ b/patches/glibc/compat-2.1/rh62-09-glibc-compat-2.1.3-security2.patch
@@ -0,0 +1,66 @@
+2002-07-05 Tomohiro Kato <tomop@teamgedoh.net>
+
+ * glibc-compat/nss_dns/dns-network.c (getanswer_r): Reduce
+ linebuflen in parallel to bumping up the buffer pointer.
+ * glibc-compat/nss_dns/dns-host.c (getanswer_r): Likewise.
+ Compare n with linebuflen instead of buflen.
+
+2002-07-02 Andreas Schwab <schwab@suse.de>
+
+ * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
+ in parallel to bumping up the buffer pointer.
+
+--- libc/glibc-compat/nss_dns/dns-network.c.jj Wed Jan 10 11:58:20 2001
++++ libc/glibc-compat/nss_dns/dns-network.c Tue Jul 9 10:31:15 2002
+@@ -283,7 +283,9 @@ getanswer_r (const querybuf *answer, int
+ }
+ 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;
+ }
+--- libc/glibc-compat/nss_dns/dns-host.c.jj Wed Jan 10 11:58:20 2001
++++ libc/glibc-compat/nss_dns/dns-host.c Tue Jul 9 10:36:41 2002
+@@ -424,7 +424,7 @@ getanswer_r (const querybuf *answer, int
+ linebuflen -= n;
+ /* Get canonical name. */
+ n = strlen (tbuf) + 1; /* For the \0. */
+- if ((size_t) n > buflen || n >= MAXHOSTNAMELEN)
++ if ((size_t) n > linebuflen || n >= MAXHOSTNAMELEN)
+ {
+ ++had_error;
+ continue;
+@@ -447,7 +447,7 @@ getanswer_r (const querybuf *answer, int
+ cp += n;
+ /* Get canonical name. */
+ n = strlen (tbuf) + 1; /* For the \0. */
+- if ((size_t) n > buflen || n >= MAXHOSTNAMELEN)
++ if ((size_t) n > linebuflen || n >= MAXHOSTNAMELEN)
+ {
+ ++had_error;
+ continue;
+@@ -542,6 +542,7 @@ getanswer_r (const querybuf *answer, int
+ linebuflen -= nn;
+ }
+
++ linebuflen -= sizeof (align) - ((u_long) bp % sizeof (align));
+ bp += sizeof (align) - ((u_long) bp % sizeof (align));
+
+ if (n >= linebuflen)
+#--- libc/resolv/nss_dns/dns-network.c.jj Mon Jul 9 14:59:24 2001
+#+++ libc/resolv/nss_dns/dns-network.c Tue Jul 9 10:30:31 2002
+#@@ -328,7 +328,9 @@ getanswer_r (const querybuf *answer, int
+# }
+# 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;
+# }