summaryrefslogtreecommitdiff
path: root/tests/invalid-elf.sh
diff options
context:
space:
mode:
authorJulian Stecklina <js@alien8.de>2020-11-15 13:56:13 +0100
committerJulian Stecklina <js@alien8.de>2020-11-15 16:46:53 +0100
commit1162de53b5c0e47a768f6e2988659a5f5602a6d8 (patch)
tree2e6bb38a26ef7463d94eefbc66eae740cb6b9b3d /tests/invalid-elf.sh
parentb552c30614fb6ce4a2ec93d198bea9218e16b540 (diff)
downloadpatchelf-1162de53b5c0e47a768f6e2988659a5f5602a6d8.tar.gz
Add test case with invalid shrstab size
Parsing this file results in patchelf triggering an assertion: patchelf: patchelf.cc:384: void checkPointer(const FileContents &, void *, unsigned int): Assertion `q >= contents->data() && q + size <= contents->data() + contents->size()' failed. Aborted (core dumped)
Diffstat (limited to 'tests/invalid-elf.sh')
-rwxr-xr-xtests/invalid-elf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/invalid-elf.sh b/tests/invalid-elf.sh
index 16bd7c1..82c4c04 100755
--- a/tests/invalid-elf.sh
+++ b/tests/invalid-elf.sh
@@ -15,7 +15,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
+TEST_CASES="invalid-shrstrtab-idx invalid-shrstrtab-size"
FAILED_TESTS=""