This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.11-353-gad3d3e8
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 9 Apr 2010 00:14:47 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.11-353-gad3d3e8
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, master has been updated
via ad3d3e8f20c95aae9d26970c169bca6f48072681 (commit)
from 59d9f1d6983fc9b606a1f9214fb817efe3d6cff8 (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=ad3d3e8f20c95aae9d26970c169bca6f48072681
commit ad3d3e8f20c95aae9d26970c169bca6f48072681
Author: Ulrich Drepper <drepper@redhat.com>
Date: Thu Apr 8 17:12:42 2010 -0700
Fix possibly uninitilized variable handling.
If malloc errors are ignored (which say aren't by default and never
should be) malloc in the old, slow form might use an uninitialized
variable.
diff --git a/ChangeLog b/ChangeLog
index c35f5ff..9d83777 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-08 Ulrich Drepper <drepper@redhat.com>
+
+ * malloc/malloc.c (_int_malloc): Return NULL if printing error message
+ returns.
+
2010-03-30 Daniel Jacobowitz <dan@codesourcery.com>
* Makeconfig (+common-includes): Define.
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 558e8ba..722b1d4 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -4306,6 +4306,7 @@ _int_malloc(mstate av, size_t bytes)
errstr = "malloc(): memory corruption (fast)";
errout:
malloc_printerr (check_action, errstr, chunk2mem (victim));
+ return NULL;
}
#ifndef ATOMIC_FASTBINS
*fb = victim->fd;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
malloc/malloc.c | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources