The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / glibc / 2.18-svnr23787 / 0004-CVE-2014-9402.patch
1 Fix CVE-2014-9402 - denial of service in getnetbyname function.
2 Backport from https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=11e3417af6e354f1942c68a271ae51e892b2814d
3 See https://bugzilla.redhat.com/show_bug.cgi?id=1175369
4
5 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
6
7 diff -Nura eglibc-2.19.orig/libc/resolv/nss_dns/dns-network.c eglibc-2.19/libc/resolv/nss_dns/dns-network.c
8 --- eglibc-2.19.orig/libc/resolv/nss_dns/dns-network.c  2015-01-08 16:12:35.024977879 -0300
9 +++ eglibc-2.19/libc/resolv/nss_dns/dns-network.c       2015-01-08 16:12:42.543992357 -0300
10 @@ -398,8 +398,8 @@
11  
12         case BYNAME:
13           {
14 -           char **ap = result->n_aliases++;
15 -           while (*ap != NULL)
16 +           char **ap;
17 +           for (ap = result->n_aliases; *ap != NULL; ++ap)
18               {
19                 /* Check each alias name for being of the forms:
20                    4.3.2.1.in-addr.arpa         = net 1.2.3.4