platform_bionic/libc/bionic
tedbo 9d8be5485c get_malloc_leak_info: Fix assumption that totalMemory out parameter was initialized to zero.
The get_malloc_leak_info() currently asssumes that the totalMemory out parameter
was pre-initialized to zero before the routine is called. If it is not then the
accumulated totalMemory value will be incorrect. It is likely that many callers
will simply allocate totalMemory on the stack with no initialization and assume
that get_malloc_leak_info will set the proper value.

As an example, the caller in frameworks/base/core/jni/android_os_Debug.cpp
calls get_malloc_leak_info() with the address uninitiazed stack variable
for totalMemory. It is probably best to fix this in get_malloc_leak_info.

Change-Id: I84c927c3781419585794726115b7d34d8fdd24ae
2010-10-05 13:23:28 -07:00
..
__errno.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__set_errno.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
_rand48.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
arc4random.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
atomics_x86.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
basename.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
basename_r.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
bionic_clone.c Implement clone() C library function properly. 2010-01-25 11:18:30 -08:00
clearenv.c Change-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fb 2010-06-27 20:53:04 -07:00
cpuacct.c Remove compiler warnings when building Bionic. 2010-06-22 17:51:41 -07:00
dirname.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
dirname_r.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
dlmalloc.c Split libc_debug.so into two .so modules loaded on demand from libc.so 2009-11-18 10:36:25 -08:00
dlmalloc.h Split libc_debug.so into two .so modules loaded on demand from libc.so 2009-11-18 10:36:25 -08:00
drand48.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
erand48.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
err.c Add fts, err, and sys/queue for grep 2010-01-15 15:57:02 -08:00
fdprintf.c Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershell 2010-01-15 16:52:35 -08:00
fork.c resolved conflicts for merge of 4f086aeb to gingerbread-plus-aosp 2010-07-23 13:53:19 -07:00
fts.c Remove compiler warnings when building Bionic. 2010-06-22 17:51:41 -07:00
hash.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
if_indextoname.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
if_nametoindex.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ioctl.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ldexp.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
libc_init_common.c Change-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fb 2010-06-27 20:53:04 -07:00
libc_init_common.h Fix the C library runtime initialization order. 2009-07-18 01:11:10 +02:00
libc_init_dynamic.c Change-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fb 2010-06-27 20:53:04 -07:00
libc_init_static.c Split libc_debug.so into two .so modules loaded on demand from libc.so 2009-11-18 10:36:25 -08:00
logd_write.c libc: remove cutils dependencies 2010-06-11 13:49:09 -07:00
malloc_debug_common.c get_malloc_leak_info: Fix assumption that totalMemory out parameter was initialized to zero. 2010-10-05 13:23:28 -07:00
malloc_debug_common.h Merge memory checking functionality from sandbox 2010-02-16 11:43:18 -08:00
malloc_debug_leak.c merge from open-source master 2010-05-03 15:33:05 -07:00
malloc_debug_qemu.c Merge memory checking functionality from sandbox 2010-02-16 11:43:18 -08:00
md5.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
md5.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pthread-atfork.c Implemented pthread_atfork() 2010-07-23 13:10:16 -07:00
pthread-rwlocks.c Add pthread_rwlock_t implementation to the C library (DO NOT MERGE) 2010-05-19 14:53:18 -07:00
pthread-timers.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pthread.c Add memory barriers to pthread_once. 2010-09-23 12:30:12 -07:00
pthread_internal.h Implemented pthread_atfork() 2010-07-23 13:10:16 -07:00
ptrace.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pututline.c bionic: ftell() returns a long, not an int 2010-02-05 16:05:52 -02:00
rand48.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
realpath.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
rules.jam auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
semaphore.c libc: Fix sem_post() implementation to wake up all waiting threads. 2010-07-02 15:09:57 -07:00
sha1.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ssp.c bionic: equalize the <unknown> program name between ssp.c and libc_init_common.c 2010-02-05 17:48:07 -02:00
stubs.c Fix android_id_from_name to accept "app_0" as a valid ID. 2010-02-12 11:35:38 -08:00
system_properties.c Remove compiler warnings when building Bionic. 2010-06-22 17:51:41 -07:00
thread_atexit.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
time64.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
time64_config.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
utime.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
utmp.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00