mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-20 13:03:57 +08:00
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:
@@ -16,7 +16,7 @@ TEST_DIR=$(dirname $(readlink -f $0))/invalid-elf
|
||||
# Each test case is listed here. The names should roughly indicate
|
||||
# what makes the given ELF file invalid.
|
||||
TEST_CASES="invalid-shrstrtab-idx invalid-shrstrtab-size invalid-shrstrtab-zero
|
||||
invalid-shrstrtab-nonterm"
|
||||
invalid-shrstrtab-nonterm invalid-shdr-name"
|
||||
|
||||
FAILED_TESTS=""
|
||||
|
||||
|
BIN
tests/invalid-elf/invalid-shdr-name
Normal file
BIN
tests/invalid-elf/invalid-shdr-name
Normal file
Binary file not shown.
Reference in New Issue
Block a user