bionic/tests
Nick Kralevich a44e9afdd1 FORTIFY_SOURCE: optimize
Don't do the fortify_source checks if we can determine, at
compile time, that the provided operation is safe.

This avoids silliness like calling fortify source on things like:

  size_t len = strlen("asdf");
  printf("%d\n", len);

and allows the compiler to optimize this code to:

  printf("%d\n", 4);

Defer to gcc's builtin functions instead of pointing our code
to the libc implementation.

Change-Id: I5e1dcb61946461c4afaaaa983e39f07c7a0df0ae
2013-01-17 15:41:33 -08:00
..
Android.mk libc: add getauxval() 2013-01-11 16:44:15 -08:00
benchmark_main.cpp Simple google3-compatible benchmarking. 2012-11-08 15:37:43 -08:00
benchmark.h Simple google3-compatible benchmarking. 2012-11-08 15:37:43 -08:00
dirent_test.cpp libc: Fix alphasort() signature (and implementation). 2012-10-29 07:44:27 -07:00
dlfcn_test.cpp Don't test GNU-style ELF hashes on MIPS. 2013-01-07 14:44:36 -08:00
empty.cpp Reject .so files with no sysv hash table. 2012-10-31 14:30:50 -07:00
fenv_test.cpp Rewrite <fenv.h> for ARM. 2012-11-05 08:50:19 -08:00
getauxval_test.cpp libc: add getauxval() 2013-01-11 16:44:15 -08: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 Only have one copy of the kernel_sigset_t hack, and add more tests. 2013-01-10 14:42:14 -08:00
regex_test.cpp Switch to the current NetBSD regex implementation. 2012-08-15 15:39:11 -07:00
signal_test.cpp Only have one copy of the kernel_sigset_t hack, and add more tests. 2013-01-10 14:42:14 -08:00
stack_protector_test.cpp Revert "stack protector: use AT_RANDOM" 2013-01-16 13:16:42 -08: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_benchmark.cpp Add a memmove(3) benchmark. 2012-11-09 14:59:21 -08:00
string_test.cpp FORTIFY_SOURCE: optimize 2013-01-17 15:41:33 -08:00
stubs_test.cpp Fix several compiler warnings. 2012-09-26 14:20:22 -07:00
unistd_test.cpp Define _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC_CLOCK). 2013-01-02 14:23:43 -08:00