summaryrefslogtreecommitdiffstats
path: root/tests/ChangeLog
diff options
context:
space:
mode:
authorJohn Ogness <[email protected]>2016-06-23 16:03:58 +0200
committerMark Wielaard <[email protected]>2016-06-28 20:19:24 +0200
commit96e140f6687922606657a76f185a73cf47908ef2 (patch)
tree21b2be7ae43403b06511775c0ab5cfa4937af581 /tests/ChangeLog
parent9a36c9226c4a237208a7735f0e6a6fd1eefb60ab (diff)
libelf: find 1st section instead of assuming
When getting section headers it is assumed that the first section is on the first section list. However, it is possible that the first section list only contains the zeroth section, in which case either illegal memory access occurs or elf_nextscn() erroneously returns NULL. With this patch, checks are added to avoid the illegal memory access and (if available) the second section list is looked at to find the first section. A new test emptyfile is added that tests adding a section to and "empty" ELF file 32/64 class with ELF_C_RDWR[_MMAP]. Signed-off-by: John Ogness <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/ChangeLog')
-rw-r--r--tests/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 1504d487..73aad091 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,10 @@
+2016-06-24 Mark Wielaard <[email protected]>
+
+ * Makefile.am (check_PROGRAMS): Add emptyfile.
+ (TESTS): Likewise.
+ (emptyfile_LDADD): New variable.
+ * emptyfile.c: New test.
+
2016-06-28 Richard Henderson <[email protected]>
* Makefile.am (TESTS): Add run-disasm-bpf.sh, conditionally.