diff options
author | Mark Wielaard <mjw@redhat.com> | 2015-01-20 14:52:41 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-02-06 22:18:52 +0100 |
commit | 058ae7b4d5bdfa0f39312b056ee9cadc4c3ffeb9 (patch) | |
tree | bb41cd47b381b0d698ff2e5ef96dfbce635e02a4 /tests/Makefile.am | |
parent | c806736dc8ba24bf126d3942aaa755e7d4f86ea9 (diff) | |
download | android_external_elfutils-058ae7b4d5bdfa0f39312b056ee9cadc4c3ffeb9.tar.gz android_external_elfutils-058ae7b4d5bdfa0f39312b056ee9cadc4c3ffeb9.tar.bz2 android_external_elfutils-058ae7b4d5bdfa0f39312b056ee9cadc4c3ffeb9.zip |
libelf: elf_strptr should fetch the shdr for the section if not yet known.
elf_strptr might be called before the shdrs are read in. In that case it
needs to explicitly call __elf[32|64]_getshdr_rdlock to check the section
type and size. The new strptr testcase triggers this corner case and crashes
before the fix.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index cbc1eb2f..c3364a2f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -51,7 +51,7 @@ check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \ dwfl-report-elf-align varlocs backtrace backtrace-child \ backtrace-data backtrace-dwarf debuglink debugaltlink \ buildid deleted deleted-lib.so aggregate_size vdsosyms \ - getsrc_die + getsrc_die strptr asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \ asm-tst6 asm-tst7 asm-tst8 asm-tst9 @@ -113,7 +113,7 @@ TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \ run-backtrace-demangle.sh run-stack-d-test.sh run-stack-i-test.sh \ run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \ run-linkmap-cut.sh run-aggregate-size.sh vdsosyms run-readelf-A.sh \ - run-getsrc-die.sh + run-getsrc-die.sh run-strptr.sh if !BIARCH export ELFUTILS_DISABLE_BIARCH = 1 @@ -284,7 +284,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ testfile-sizes3.o.bz2 \ run-readelf-A.sh testfileppc32attrs.o.bz2 \ testfile-debug-types.bz2 \ - run-getsrc-die.sh + run-getsrc-die.sh run-strptr.sh if USE_VALGRIND valgrind_cmd='valgrind -q --error-exitcode=1 --run-libc-freeres=no' @@ -425,6 +425,7 @@ deleted_lib_so_CFLAGS = -fPIC -fasynchronous-unwind-tables aggregate_size_LDADD = $(libdw) $(libelf) vdsosyms_LDADD = $(libdw) $(libelf) getsrc_die_LDADD = $(libdw) $(libelf) +strptr_LDADD = $(libelf) if GCOV check: check-am coverage |