From 1162de53b5c0e47a768f6e2988659a5f5602a6d8 Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Sun, 15 Nov 2020 13:56:13 +0100 Subject: 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) --- tests/invalid-elf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/invalid-elf.sh') 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="" -- cgit v1.2.1