summaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2017-03-28 00:38:52 +0200
committerMark Wielaard <[email protected]>2017-04-04 00:18:48 +0200
commit61fe61898747f63eb35a81c2261f3590a3dab8fd (patch)
tree59c6397d943bcfb56fee4dd5cc8355afcbdae373 /src/ChangeLog
parent9a0d9d314a6342b56e3277bd7ad7ecb6e73a7d38 (diff)
elflint: Don't trust sh_entsize when checking hash sections.
Calculate and use the expected entsize instead of relying on the one given by the ELF file section header. Return early if there isn't enough data in the section to check the full hash table. https://sourceware.org/bugzilla/show_bug.cgi?id=21311 Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6031213f..70744bcf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,12 @@
2017-03-27 Mark Wielaard <[email protected]>
+ * elflint.c (check_sysv_hash): Return early if section size is
+ too small.
+ (check_sysv_hash64): Likewise.
+ (check_hash): Calculate expect_entsize to check section size.
+
+2017-03-27 Mark Wielaard <[email protected]>
+
* elflint.c (check_symtab_shndx): Check data->d_size.
2017-03-24 Mark Wielaard <[email protected]>