diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-15 03:33:23 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-15 03:33:23 +0000 |
commit | 34276794ce110cd2f9204e4b504aea41fb584145 (patch) | |
tree | 614343b8dd17e74468019c46daabd3861ef8dfbc /core/glibc/glibc-2.18-getaddrinfo-CVE-2013-4458.patch | |
parent | 86a5624291a8a72d9a0a2c51fcc64bf6e221524b (diff) |
Sat Feb 15 03:31:19 UTC 2014
Diffstat (limited to 'core/glibc/glibc-2.18-getaddrinfo-CVE-2013-4458.patch')
-rw-r--r-- | core/glibc/glibc-2.18-getaddrinfo-CVE-2013-4458.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/core/glibc/glibc-2.18-getaddrinfo-CVE-2013-4458.patch b/core/glibc/glibc-2.18-getaddrinfo-CVE-2013-4458.patch deleted file mode 100644 index a7bc67c6f..000000000 --- a/core/glibc/glibc-2.18-getaddrinfo-CVE-2013-4458.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c -index e6ce4cf..8ff74b4 100644 ---- a/sysdeps/posix/getaddrinfo.c -+++ b/sysdeps/posix/getaddrinfo.c -@@ -197,7 +197,22 @@ gaih_inet_serv (const char *servicename, const struct gaih_typeproto *tp, - &rc, &herrno, NULL, &localcanon)); \ - if (rc != ERANGE || herrno != NETDB_INTERNAL) \ - break; \ -- tmpbuf = extend_alloca (tmpbuf, tmpbuflen, 2 * tmpbuflen); \ -+ if (!malloc_tmpbuf && __libc_use_alloca (alloca_used + 2 * tmpbuflen)) \ -+ tmpbuf = extend_alloca_account (tmpbuf, tmpbuflen, 2 * tmpbuflen, \ -+ alloca_used); \ -+ else \ -+ { \ -+ char *newp = realloc (malloc_tmpbuf ? tmpbuf : NULL, \ -+ 2 * tmpbuflen); \ -+ if (newp == NULL) \ -+ { \ -+ result = -EAI_MEMORY; \ -+ goto free_and_return; \ -+ } \ -+ tmpbuf = newp; \ -+ malloc_tmpbuf = true; \ -+ tmpbuflen = 2 * tmpbuflen; \ -+ } \ - } \ - if (status == NSS_STATUS_SUCCESS && rc == 0) \ - h = &th; \ -@@ -209,7 +224,8 @@ gaih_inet_serv (const char *servicename, const struct gaih_typeproto *tp, - { \ - __set_h_errno (herrno); \ - _res.options |= old_res_options & RES_USE_INET6; \ -- return -EAI_SYSTEM; \ -+ result = -EAI_SYSTEM; \ -+ goto free_and_return; \ - } \ - if (herrno == TRY_AGAIN) \ - no_data = EAI_AGAIN; \ --- -1.8.4.1 - |