This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, release/2.14/master, updated. glibc-2.14-9-g039ab44
- From: schwab at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 14 Jun 2011 12:08:08 -0000
- Subject: GNU C Library master sources branch, release/2.14/master, updated. glibc-2.14-9-g039ab44
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, release/2.14/master has been updated
via 039ab4445d499689061a7605aa451b61932eef9f (commit)
from 9b849836f534bbd250a6733ebc1edf32e5f4d5dc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=039ab4445d499689061a7605aa451b61932eef9f
commit 039ab4445d499689061a7605aa451b61932eef9f
Author: Ulrich Drepper <drepper@gmail.com>
Date: Mon Jun 13 08:31:50 2011 -0400
Fix memory leak in getaddrinfo
(cherry picked from commit 3154bfb8c7fb84fbf7ecdc787752b395579d2ac7)
diff --git a/ChangeLog b/ChangeLog
index 2826e82..db9d586 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-10 Andreas Schwab <schwab@redhat.com>
+
+ * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
+ tmpbuf.
+
2011-06-07 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 1e017b2..469abe2 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -821,7 +821,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
size_t tmpbuflen = 1024;
malloc_tmpbuf = !__libc_use_alloca (alloca_used + tmpbuflen);
assert (tmpbuf == NULL);
- if (malloc_tmpbuf)
+ if (!malloc_tmpbuf)
tmpbuf = alloca_account (tmpbuflen, alloca_used);
else
{
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/posix/getaddrinfo.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources