Add test case with invalid section header sh_name

Parsing this file results in patchelf segfaulting at:

    at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/char_traits.h:335
    at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/basic_string.h:527
    this=0x7fffffff8028, fileContents=...) at patchelf.cc:449
This commit is contained in:
Julian Stecklina
2020-11-15 15:39:42 +01:00
parent 7a8214ce63
commit de9fa4def4
2 changed files with 1 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ TEST_DIR=$(dirname $(readlink -f $0))/invalid-elf
# Each test case is listed here. The names should roughly indicate # Each test case is listed here. The names should roughly indicate
# what makes the given ELF file invalid. # what makes the given ELF file invalid.
TEST_CASES="invalid-shrstrtab-idx invalid-shrstrtab-size invalid-shrstrtab-zero TEST_CASES="invalid-shrstrtab-idx invalid-shrstrtab-size invalid-shrstrtab-zero
invalid-shrstrtab-nonterm" invalid-shrstrtab-nonterm invalid-shdr-name"
FAILED_TESTS="" FAILED_TESTS=""

Binary file not shown.