mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
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.
This commit is contained in:
parent
59d9f1d698
commit
ad3d3e8f20
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user