diff options
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.patch | 28 |
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 @@ | |||
1 | eglibc: CVE-2014-9402 endless loop in getaddr_r | ||
2 | |||
3 | https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=11e3417af6e354f1942c68a271ae51e892b2814d | ||
4 | |||
5 | Upstream-Status: Backport | ||
6 | |||
7 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
8 | Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> | ||
9 | |||
10 | From 11e3417af6e354f1942c68a271ae51e892b2814d Mon Sep 17 00:00:00 2001 | ||
11 | From: Florian Weimer <fweimer@redhat.com> | ||
12 | Date: Mon, 15 Dec 2014 17:41:13 +0100 | ||
13 | Subject: [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 | ||