OSDN Git Service

Add test for misaligned section header
authorDimitry Ivanov <dimitry@google.com>
Fri, 12 Aug 2016 21:25:50 +0000 (14:25 -0700)
committerDimitry Ivanov <dimitry@google.com>
Fri, 12 Aug 2016 21:48:15 +0000 (14:48 -0700)
commit972e3d0787cf177450cdc1b52e177c747b94caba
tree1c7fe58e2c8a7c40c0f5b124b4c0bdc7136ce1c6
parent4a77fa3dcd9a6da622c77e25a3537f3a6a594863
Add test for misaligned section header

Make sure linker does not crash when dlopening
elf-file with odd section header offset.

Bug: http://b/30795430
Bug: http://b/30687964
Test: bionic-unit-tests --gtest_filter=dlfcn.dlopen_invalid*
Change-Id: If59cb6da85b8752a69dc5687de85f9a9b74c92b4
tests/Android.mk
tests/dlfcn_test.cpp
tests/prebuilt-elf-files/arm/libtest_invalid-unaligned_shdr_offset.so [new file with mode: 0755]
tests/prebuilt-elf-files/arm64/libtest_invalid-unaligned_shdr_offset.so [new file with mode: 0755]
tests/prebuilt-elf-files/x86/libtest_invalid-unaligned_shdr_offset.so [new file with mode: 0755]
tests/prebuilt-elf-files/x86_64/libtest_invalid-unaligned_shdr_offset.so [new file with mode: 0755]