summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-2.19/CVE-2014-9402_endless-loop-in-getaddr_r.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-2.19/CVE-2014-9402_endless-loop-in-getaddr_r.patch')
-rw-r--r--meta/recipes-core/eglibc/eglibc-2.19/CVE-2014-9402_endless-loop-in-getaddr_r.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-2.19/CVE-2014-9402_endless-loop-in-getaddr_r.patch b/meta/recipes-core/eglibc/eglibc-2.19/CVE-2014-9402_endless-loop-in-getaddr_r.patch
new file mode 100644
index 0000000000..f062420d92
--- /dev/null
+++ b/meta/recipes-core/eglibc/eglibc-2.19/CVE-2014-9402_endless-loop-in-getaddr_r.patch
@@ -0,0 +1,28 @@
1eglibc: CVE-2014-9402 endless loop in getaddr_r
2
3https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=11e3417af6e354f1942c68a271ae51e892b2814d
4
5Upstream-Status: Backport
6
7Signed-off-by: Armin Kuster <akuster@mvista.com>
8Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
9
10From 11e3417af6e354f1942c68a271ae51e892b2814d Mon Sep 17 00:00:00 2001
11From: Florian Weimer <fweimer@redhat.com>
12Date: Mon, 15 Dec 2014 17:41:13 +0100
13Subject: [PATCH] Avoid infinite loop in nss_dns getnetbyname [BZ #17630]
14
15===================================================================
16--- git.orig/resolv/nss_dns/dns-network.c
17+++ git/resolv/nss_dns/dns-network.c
18@@ -398,8 +398,8 @@ getanswer_r (const querybuf *answer, int
19
20 case BYNAME:
21 {
22- char **ap = result->n_aliases++;
23- while (*ap != NULL)
24+ char **ap;
25+ for (ap = result->n_aliases; *ap != NULL; ++ap)
26 {
27 /* Check each alias name for being of the forms:
28 4.3.2.1.in-addr.arpa = net 1.2.3.4