wok-6.x rev 17548
glibc: CVE-2015-0235 fix (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 29 13:01:35 2015 +0100 (2015-01-29) |
parents | 45fa4cc38520 |
children | 46a4ae996aa7 |
files | glibc/stuff/glibc-2.14.1-CVE-2015-0235.patch |
line diff
1.1 --- a/glibc/stuff/glibc-2.14.1-CVE-2015-0235.patch Thu Jan 29 11:47:06 2015 +0100 1.2 +++ b/glibc/stuff/glibc-2.14.1-CVE-2015-0235.patch Thu Jan 29 13:01:35 2015 +0100 1.3 @@ -14,15 +14,7 @@ 1.4 return -1; 1.5 } 1.6 1.7 -@@ -84,14 +87,16 @@ 1.8 - } 1.9 - 1.10 - size_needed = (sizeof (*host_addr) 1.11 -- + sizeof (*h_addr_ptrs) + strlen (name) + 1); 1.12 -+ + sizeof (*h_addr_ptrs) 1.13 -+ + sizeof (*h_allias_ptr) + strlen (name) + 1); 1.14 - 1.15 - if (buffer_size == NULL) 1.16 +@@ -90,8 +93,9 @@ 1.17 { 1.18 if (buflen < size_needed) 1.19 { 1.20 @@ -33,7 +25,7 @@ 1.21 __set_errno (ERANGE); 1.22 goto done; 1.23 } 1.24 -@@ -110,7 +115,7 @@ 1.25 +@@ -110,7 +114,7 @@ 1.26 *buffer_size = 0; 1.27 __set_errno (save); 1.28 if (h_errnop != NULL) 1.29 @@ -42,7 +34,7 @@ 1.30 *result = NULL; 1.31 goto done; 1.32 } 1.33 -@@ -150,7 +155,9 @@ 1.34 +@@ -150,7 +154,9 @@ 1.35 if (! ok) 1.36 { 1.37 *h_errnop = HOST_NOT_FOUND; 1.38 @@ -53,7 +45,7 @@ 1.39 *result = NULL; 1.40 goto done; 1.41 } 1.42 -@@ -202,15 +209,6 @@ 1.43 +@@ -202,15 +208,6 @@ 1.44 1.45 if ((isxdigit (name[0]) && strchr (name, ':') != NULL) || name[0] == ':') 1.46 { 1.47 @@ -69,7 +61,7 @@ 1.48 switch (af) 1.49 { 1.50 default: 1.51 -@@ -226,7 +224,10 @@ 1.52 +@@ -226,7 +223,10 @@ 1.53 /* This is not possible. We cannot represent an IPv6 address 1.54 in an `struct in_addr' variable. */ 1.55 *h_errnop = HOST_NOT_FOUND; 1.56 @@ -81,7 +73,7 @@ 1.57 goto done; 1.58 1.59 case AF_INET6: 1.60 -@@ -234,42 +235,6 @@ 1.61 +@@ -234,42 +234,6 @@ 1.62 break; 1.63 } 1.64 1.65 @@ -124,7 +116,7 @@ 1.66 for (cp = name;; ++cp) 1.67 { 1.68 if (!*cp) 1.69 -@@ -282,7 +247,9 @@ 1.70 +@@ -282,7 +246,9 @@ 1.71 if (inet_pton (AF_INET6, name, host_addr) <= 0) 1.72 { 1.73 *h_errnop = HOST_NOT_FOUND;