aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-04-08 17:12:42 -0700
committerUlrich Drepper <drepper@redhat.com>2010-04-08 17:12:42 -0700
commitad3d3e8f20c95aae9d26970c169bca6f48072681 (patch)
treed7c5a1a2fac3eba86ce79158ea1ef0956a5e000d /malloc
parent59d9f1d6983fc9b606a1f9214fb817efe3d6cff8 (diff)
downloadglibc-ad3d3e8f20c95aae9d26970c169bca6f48072681.tar
glibc-ad3d3e8f20c95aae9d26970c169bca6f48072681.tar.gz
glibc-ad3d3e8f20c95aae9d26970c169bca6f48072681.tar.bz2
glibc-ad3d3e8f20c95aae9d26970c169bca6f48072681.zip
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.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/malloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 558e8bab0a..722b1d4961 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;