platform_bionic/libc/bionic
Pavel Chupin a21e696d90 Avoid segfaults if properties are not initialized
Null or constant dereferencing occurs if properties are not initialized.
On Android devices it shouldn't happen but can be faced if testing bionic
libc.so on Linux host.

Change-Id: I8f047cbe17d0e7bcde40ace000a8aa53789c16cb
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2013-09-03 13:27:09 +04:00
..
__errno.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__fgets_chk.cpp Clean up internal libc logging. 2013-03-15 16:12:58 -07:00
__memcpy_chk.cpp Use __predict_false on some fortify methods. 2013-05-02 14:31:51 -07:00
__memmove_chk.cpp Use __predict_false on some fortify methods. 2013-05-02 14:31:51 -07:00
__memset_chk.cpp Use __predict_false on some fortify methods. 2013-05-02 14:31:51 -07:00
__set_errno.cpp Unhide __set_errno for backwards compatibility. 2013-03-22 19:12:52 -07:00
__stack_chk_fail.cpp Make abort messages available to debuggerd. 2013-04-05 11:24:19 -07:00
__strcat_chk.cpp FORTIFY_SOURCE: strcat / strncat optimize 2013-05-31 09:07:46 -07:00
__strchr_chk.cpp bionic/x86: Optimization for string routines 2013-05-31 13:37:03 +04:00
__strcpy_chk.cpp Use __predict_false on some fortify methods. 2013-05-02 14:31:51 -07:00
__strlcat_chk.cpp Use __predict_false on some fortify methods. 2013-05-02 14:31:51 -07:00
__strlcpy_chk.cpp Use __predict_false on some fortify methods. 2013-05-02 14:31:51 -07:00
__strlen_chk.cpp Use __predict_false on some fortify methods. 2013-05-02 14:31:51 -07:00
__strncat_chk.cpp FORTIFY_SOURCE: strcat / strncat optimize 2013-05-31 09:07:46 -07:00
__strncpy_chk.cpp FORTIFY_SOURCE: introduce __strncpy_chk2 2013-08-28 12:39:06 -07:00
__strrchr_chk.cpp Optimize __memset_chk, __memcpy_chk. DO NOT MERGE. 2013-08-14 18:14:43 -07:00
__umask_chk.cpp Use __predict_false on some fortify methods. 2013-05-02 14:31:51 -07:00
__vsnprintf_chk.cpp Use __predict_false on some fortify methods. 2013-05-02 14:31:51 -07:00
__vsprintf_chk.cpp Clean up internal libc logging. 2013-03-15 16:12:58 -07:00
abort.cpp Clean up abort. 2013-06-12 14:14:53 -07:00
arc4random.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
assert.cpp Make abort messages available to debuggerd. 2013-04-05 11:24:19 -07:00
atoi.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
atol.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
atoll.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
bindresvport.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
bionic_clone.c Fix the pthread_setname_np test. 2013-02-15 12:08:59 -08:00
brk.cpp Remove bogus extra alignment from sbrk. 2013-02-05 16:10:59 -08:00
clearenv.c Change-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fb 2010-06-27 20:53:04 -07:00
cpuacct.c Prevent deadlock when using fork 2011-12-06 08:39:18 -08:00
crtbrand.c Add a .note.android.ident section to Android ELF binaries. 2012-07-31 16:18:22 +12:00
daemon.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
debug_mapinfo.cpp Don't collect useless stack frames; do demangle C++ symbols. 2013-01-29 09:56:31 -08:00
debug_mapinfo.h Don't collect useless stack frames; do demangle C++ symbols. 2013-01-29 09:56:31 -08:00
debug_stacktrace.cpp Remove a spurious FIXME and unnecessary type cast. 2013-05-07 16:53:33 -07:00
debug_stacktrace.h Don't collect useless stack frames; do demangle C++ symbols. 2013-01-29 09:56:31 -08:00
dirent.cpp Reimplement scandir(3). 2013-02-25 13:14:31 -08:00
dl_iterate_phdr_static.c Kernel dso support for 'dl_iterate_phdr' function 2013-06-25 13:12:39 -07:00
dlmalloc.c Clean up abort. 2013-06-12 14:14:53 -07:00
dlmalloc.h Restore dlmalloc mmap threshold to 64k 2013-07-23 13:48:39 -07:00
err.c __progname should be const char*, not char*. 2013-02-07 12:06:44 -08:00
ether_aton.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ether_ntoa.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
eventfd_read.cpp Prevent name conflict for eventfd.cpp and eventfd.s when building libc.a 2013-04-03 11:10:37 -07:00
eventfd_write.cpp Prevent name conflict for eventfd.cpp and eventfd.s when building libc.a 2013-04-03 11:10:37 -07:00
fcntl.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
fdprintf.c Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershell 2010-01-15 16:52:35 -08:00
flockfile.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
fork.c Fix the pthread_setname_np test. 2013-02-15 12:08:59 -08:00
fstatfs.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ftime.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ftok.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
fts.c Remove compiler warnings when building Bionic. 2010-06-22 17:51:41 -07:00
futimens.cpp Add futimens. 2013-08-08 17:13:33 -07:00
getauxval.cpp Clean up the argc/argv/envp/auxv handling. 2013-02-07 11:44:21 -08:00
getcwd.cpp Fix a getcwd(3) bug and make our tests run correctly under valgrind. 2012-10-09 17:17:24 -07:00
getdtablesize.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
gethostname.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
getpgrp.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
getpriority.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
getpt.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -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
initgroups.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ioctl.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
isatty.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
issetugid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ldexp.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
libc_init_common.cpp Make abort messages available to debuggerd. 2013-04-05 11:24:19 -07:00
libc_init_common.h Hide various symbols that shouldn't be exposed. 2013-03-15 16:31:09 -07:00
libc_init_dynamic.cpp Hide various symbols that shouldn't be exposed. 2013-03-15 16:31:09 -07:00
libc_init_static.cpp Switch to using AT_RANDOM for the stack guards. 2013-02-08 11:16:13 -08:00
libc_logging.cpp libc_logging: don't keep file descriptors open forever 2013-06-21 13:28:42 -07:00
libgen.cpp Clean up the <libgen.h> implementation a little, bring in tests. 2012-10-29 14:27:10 -07:00
lseek64.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
malloc_debug_check.cpp Implement malloc_usable_size for debug impls. 2013-06-07 14:55:32 -07:00
malloc_debug_common.cpp Implement malloc_usable_size for debug impls. 2013-06-07 14:55:32 -07:00
malloc_debug_common.h Implement malloc_usable_size for debug impls. 2013-06-07 14:55:32 -07:00
malloc_debug_leak.cpp Implement malloc_usable_size for debug impls. 2013-06-07 14:55:32 -07:00
malloc_debug_qemu.cpp Implement malloc_usable_size for debug impls. 2013-06-07 14:55:32 -07:00
md5.c am 08a4ce98: am 0c398985: Merge "[ENDIAN] Build md5 code correctly for bigendian targets" 2011-03-14 11:50:56 -07:00
md5.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
memchr.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memcmp.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memcpy.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memmem.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memmove.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memrchr.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memset.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memswap.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
mmap.cpp Avoid sign extension of the mmap offset. 2013-07-25 10:15:07 -07:00
open.c Use __predict_false on some fortify methods. 2013-05-02 14:31:51 -07:00
openat.c Clean up internal libc logging. 2013-03-15 16:12:58 -07:00
pathconf.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
perror.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
pread.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
pselect.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
pthread-atfork.c Handle pthread-related changes (mutex/atfork) 2012-03-26 15:38:59 -07:00
pthread-rwlocks.c Clean up __builtin_expect usage. 2013-07-16 12:45:46 -07:00
pthread-timers.c Move stuff only needed by pthread-timers.c into pthread-timers.c. 2013-07-19 16:42:27 -07:00
pthread.c Improve stack overflow diagnostics (take 2). 2013-07-17 13:33:19 -07:00
pthread_accessor.h Fix raise(3) so it works in signal handlers. 2013-02-21 11:22:23 -08:00
pthread_attr.cpp Improve stack overflow diagnostics (take 2). 2013-07-17 13:33:19 -07:00
pthread_create.cpp Improve stack overflow diagnostics (take 2). 2013-07-17 13:33:19 -07:00
pthread_debug.cpp Clean up internal libc logging. 2013-03-15 16:12:58 -07:00
pthread_detach.cpp Handles spurious wake-ups in pthread_join() 2013-06-12 17:30:58 -07:00
pthread_equal.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_getcpuclockid.cpp Fix pthread_getcpuclockid. 2013-08-15 15:34:22 -07:00
pthread_getschedparam.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_internal.h Move stuff only needed by pthread-timers.c into pthread-timers.c. 2013-07-19 16:42:27 -07:00
pthread_internals.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_join.cpp Handles spurious wake-ups in pthread_join() 2013-06-12 17:30:58 -07:00
pthread_key.cpp Handles spurious wake-ups in pthread_join() 2013-06-12 17:30:58 -07:00
pthread_kill.cpp Fix raise(3) so it works in signal handlers. 2013-02-21 11:22:23 -08:00
pthread_self.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_setname_np.cpp Fix pthread_setname_np's behavior on invalid pthread_ts. 2013-03-21 20:02:35 -07:00
pthread_setschedparam.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_sigmask.cpp Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
ptrace.c bionic, libthread_db x86 fixes 2011-07-07 22:46:16 +02:00
ptsname.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ptsname_r.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
pututline.c bionic: ftell() returns a long, not an int 2010-02-05 16:05:52 -02:00
pwrite.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
raise.cpp Use pthread_kill() in raise() 2012-12-10 11:20:57 -08:00
reboot.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
recv.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
sbrk.cpp Remove bogus extra alignment from sbrk. 2013-02-05 16:10:59 -08:00
scandir.cpp Reimplement scandir(3). 2013-02-25 13:14:31 -08:00
sched_cpualloc.c <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
sched_cpucount.c <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
sched_getaffinity.cpp Add missing include and function prototype for sched_getaffinity. 2013-04-10 17:44:29 -07:00
sched_getcpu.c <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
semaphore.c bionic: Do not use <sys/atomics.h> for platform code. 2011-11-16 16:28:10 +01:00
send.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
setegid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
seteuid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
setlocale.cpp Move setlocale(3) and the wchar stubs over to .cpp. 2012-10-22 17:05:27 -07:00
setpgrp.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
setresuid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
setreuid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
setuid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
sigblock.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
siginterrupt.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
siglist.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
signal.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
signalfd.cpp Only have one copy of the kernel_sigset_t hack, and add more tests. 2013-01-10 14:42:14 -08:00
signame.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
sigsetmask.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
sigsuspend.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
sigwait.cpp Only have one copy of the kernel_sigset_t hack, and add more tests. 2013-01-10 14:42:14 -08:00
sleep.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
statfs.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
statvfs.cpp Fix MIPS build. 2013-07-09 14:18:36 -07:00
strchr.cpp bionic/x86: Optimization for string routines 2013-05-31 13:37:03 +04:00
strerror.cpp Make dlerror(3) thread-safe. 2012-10-16 17:58:17 -07:00
strerror_r.cpp Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
strndup.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
strnlen.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
strntoimax.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
strntoumax.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
strsignal.cpp Make dlerror(3) thread-safe. 2012-10-16 17:58:17 -07:00
strtotimeval.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
stubs.cpp Clean up internal libc logging. 2013-03-15 16:12:58 -07:00
sysconf.cpp Define PTHREAD_KEYS_MAX and _POSIX_THREAD_KEYS_MAX in a POSIX-compliant way. 2013-07-29 17:09:36 -07:00
system_properties.c Avoid segfaults if properties are not initialized 2013-09-03 13:27:09 +04:00
system_properties_compat.c bionic: add compatibility mode for properties 2013-06-25 16:52:40 -07:00
tcgetpgrp.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
tcsetpgrp.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
tdestroy.cpp Upgrade more functions to the current upstream NetBSD copy. 2012-10-23 12:29:53 -07:00
thread_atexit.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
time64.c time64: make helper functions static 2010-10-15 02:16:16 +08:00
time64_config.h <time.h>: Add timegm(), timelocal() and others. 2010-12-06 12:25:52 +01:00
tmpfile.cpp Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
umount.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
unlockpt.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
usleep.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
utmp.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
wait.cpp Expose wait4 as wait4 rather than __wait4. 2013-03-21 16:14:06 -07:00
wchar.cpp Move setlocale(3) and the wchar stubs over to .cpp. 2012-10-22 17:05:27 -07:00
wcscoll.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00