bionic/tests
Torne (Richard Coles) 26ec9679ff Handle empty relro segment or incorrectly sized file.
If the file has no relro segment, the generated relro file will have
length 0, which caused mmap to fail. If the relro file has nonzero size,
but is too short (e.g. because it's for the wrong version of the
library), the linker would segfault while comparing the data. Fix both
these issues: don't try to map a zero length file, and don't try to
compare data that would be beyond the end of the file.

Improve test to explicitly generate two versions of the library: one
with -z relro, and one with -z norelro, so we can test both cases; also
explicitly test the case where the relro file has length 0.

Bug: 14299541
Change-Id: Id8b95585edda90e8bb5de452a35b70ed2d224934
2014-05-02 14:25:45 +01:00
..
Android.build.mk Build 32/64 bit versions of tests/benchmarks. 2014-04-22 10:42:12 -07:00
Android.mk Handle empty relro segment or incorrectly sized file. 2014-05-02 14:25:45 +01:00
buffer_tests.cpp Add strcmp/memcmp testing. 2013-12-03 18:42:41 -08:00
buffer_tests.h Add strcmp/memcmp testing. 2013-12-03 18:42:41 -08:00
ctype_test.cpp Upgrade our <ctype.h> implementation to OpenBSD head. 2014-04-18 10:29:16 -07:00
dirent_test.cpp Implement some of the missing LFS64 support. 2014-02-18 15:39:24 -08:00
dlext_test_library.cpp Support loading libraries to a reserved address. 2014-04-17 14:22:17 +01:00
dlext_test.cpp Handle empty relro segment or incorrectly sized file. 2014-05-02 14:25:45 +01:00
dlfcn_test.cpp Add extra regression tests for an already-fixed dynamic linker bug. 2013-11-11 15:48:06 -08:00
empty.cpp Reject .so files with no sysv hash table. 2012-10-31 14:30:50 -07:00
eventfd_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
fcntl_test.cpp AArch64: Fix flock64 for LP64. 2014-04-08 12:19:23 -07:00
fenv_test.cpp Upgrade libm. 2013-02-01 14:51:19 -08:00
fortify_test.cpp Fix fallout from host GCC upgrade. 2014-04-23 23:02:43 -07:00
ftw_test.cpp Added ftw64, nftw64 2014-02-24 20:22:11 +00:00
getauxval_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
getcwd_test.cpp Fix __pthread_clone on ARM to set errno on failure. 2013-02-11 16:39:10 -08:00
inttypes_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
libc_logging_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
libgen_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
locale_test.cpp Flesh out <locale.h>. 2014-04-08 19:37:38 -07:00
malloc_test.cpp Implement malloc_usable_size for debug impls. 2013-06-07 14:55:32 -07:00
math_test.cpp Clean-up _fpmath and fake_long_doubles 2014-04-23 19:03:06 +01:00
netdb_test.cpp Update getnameinfo.c, remove dead code, and fix error reporting. 2013-02-13 13:11:11 -08:00
pthread_test.cpp Fix pthread_detach for already-exited threads. 2014-03-07 17:59:05 -08:00
regex_test.cpp Switch to the current NetBSD regex implementation. 2012-08-15 15:39:11 -07:00
sched_test.cpp Fix up failing glibc tests. 2013-10-29 14:55:11 -07:00
ScopedSignalHandler.h Fix up failing glibc tests. 2013-10-29 14:55:11 -07:00
signal_test.cpp Restore sys_signame for LP64. 2014-02-12 19:04:27 -08:00
sstream_test.cpp Improve the <sstream> test. 2014-04-10 20:44:27 -07:00
stack_protector_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
stack_unwinding_test_impl.c Fix clang warnings in bionic. 2013-10-11 16:20:08 -07:00
stack_unwinding_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
stdint_test.cpp Fixed int fast types for LP64 2014-02-21 16:27:21 +00:00
stdio_test.cpp Upgrade to current vfprintf. 2014-04-17 17:30:03 -07:00
stdlib_test.cpp Implement _Exit(3). 2014-04-08 17:16:13 -07:00
string_test.cpp Add stpcpy/stpncpy. 2014-04-07 16:41:53 -07:00
strings_test.cpp Everyone has CLZ. 2013-02-13 14:40:48 -08:00
stubs_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
sys_epoll_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
sys_mman_test.cpp Remove <asm/page.h>. 2014-02-24 15:55:31 -08:00
sys_resource_test.cpp Fix <sys/resource.h>. 2014-01-09 11:00:04 -08:00
sys_select_test.cpp Include sys/types.h and sys/wait.h for waitpid 2014-04-01 17:42:31 -07:00
sys_sendfile_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
sys_socket_test.cpp Fix signed vs unsigned comparison. 2014-04-15 15:29:32 -07:00
sys_stat_test.cpp Implement some of the missing LFS64 support. 2014-02-18 15:39:24 -08:00
sys_statvfs_test.cpp Implement some of the missing LFS64 support. 2014-02-18 15:39:24 -08:00
sys_syscall_test.cpp Add a unit test for syscall(2). 2013-11-13 13:14:31 -08:00
sys_time_test.cpp Fix utime/utimes when passed a NULL pointer. 2013-10-28 13:21:06 -07:00
sys_types_test.cpp Fix dev_t (for LP64). 2014-01-03 14:49:37 -08:00
sys_vfs_test.cpp Add missing file from previous change. 2014-02-18 15:48:56 -08:00
system_properties_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
TemporaryFile.h Added ftw64, nftw64 2014-02-24 20:22:11 +00:00
time_test.cpp Don't use so much stack in tzcode. 2014-04-25 21:51:26 -07:00
unistd_test.cpp Fix brk/sbrk error checking. 2014-04-25 19:38:33 -07:00
wchar_test.cpp Add mbtowc and fix mbrtowc. 2014-04-28 17:51:13 -07:00