mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* miscfuncs.cc (__import_address): Check if malloc field points directly at
'malloc'.
This commit is contained in:
parent
0e8c8b0093
commit
a69e27906f
@ -1,3 +1,8 @@
|
||||
2013-01-23 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||
|
||||
* miscfuncs.cc (__import_address): Check if malloc field points
|
||||
directly at 'malloc'.
|
||||
|
||||
2013-01-23 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||
|
||||
* miscfuncs.cc (__import_address): On second thought, the chance that
|
||||
|
@ -286,7 +286,8 @@ malloc_init ()
|
||||
extern void *_sigfe_malloc;
|
||||
/* Decide if we are using our own version of malloc by testing the import
|
||||
address from user_data. */
|
||||
use_internal = import_address (user_data->malloc) == &_sigfe_malloc;
|
||||
use_internal = user_data->malloc == malloc
|
||||
|| import_address (user_data->malloc) == &_sigfe_malloc;
|
||||
malloc_printf ("using %s malloc", use_internal ? "internal" : "external");
|
||||
internal_malloc_determined = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user