platform_bionic/tests
Elliott Hughes 4f251bee5d Don't corrupt the thread list if the main thread exits.
...and don't pass a non-heap pointer to free(3), either.

This patch replaces the "node** prev" with the clearer "node* prev"
style and fixes the null pointer dereference in the old code. That's
not sufficient to fix the reporter's bug, though. The pthread_internal_t*
for the main thread isn't heap-allocated --- __libc_init_tls causes a
pointer to a statically-allocated pthread_internal_t to be added to
the thread list.

Bug: http://code.google.com/p/android/issues/detail?id=37410
Change-Id: I112b7f22782fc789d58f9c783f7b323bda8fb8b7
2012-11-01 17:27:07 -07:00
..
Android.mk Reject .so files with no sysv hash table. 2012-10-31 14:30:50 -07:00
dirent_test.cpp libc: Fix alphasort() signature (and implementation). 2012-10-29 07:44:27 -07:00
dlopen_test.cpp Stop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too. 2012-11-01 13:53:26 -07:00
empty.cpp Reject .so files with no sysv hash table. 2012-10-31 14:30:50 -07:00
getcwd_test.cpp Enhance getcwd(3) to handle NULL like glibc. 2012-08-16 15:59:12 -07:00
libgen_test.cpp Clean up the <libgen.h> implementation a little, bring in tests. 2012-10-29 14:27:10 -07:00
pthread_test.cpp Don't corrupt the thread list if the main thread exits. 2012-11-01 17:27:07 -07:00
regex_test.cpp Switch to the current NetBSD regex implementation. 2012-08-15 15:39:11 -07:00
stack_protector_test.cpp Per-thread -fstack-protector guards for x86. 2012-10-25 12:04:03 -07:00
stdio_test.cpp Add getdelim(3) and getline(3) to bionic 2012-09-27 11:38:57 -07:00
stdlib_test.cpp Upgrade to the current NetBSD rand implementation. 2012-10-01 13:53:41 -07:00
string_test.cpp Per-thread -fstack-protector guards for x86. 2012-10-25 12:04:03 -07:00
stubs_test.cpp Fix several compiler warnings. 2012-09-26 14:20:22 -07:00