summaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2018-08-18 13:17:45 +0200
committerMark Wielaard <[email protected]>2018-08-18 13:17:45 +0200
commitc9f90a70900e753dde15cc9348dcf7de08b031eb (patch)
treea4bb16d47292b931b90016af4580c6c303bbc3f9 /src/ChangeLog
parent56b18521fb8d46d40fc090c0de9d11a08bc982fa (diff)
elflint: Fix check_sysv_hash[64] sanity checks to not overflow.
The sanity checks for how many words were needed in the section could overflow causing errors. Fix the checks. https://sourceware.org/bugzilla/show_bug.cgi?id=23542 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 a01bd756..8c89f83d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
+2018-08-18 Mark Wielaard <[email protected]>
+
+ * elflint.c (check_sysv_hash): Calculate needed size using unsigned
+ long long int to prevent overflow.
+ (check_sysv_hash64): Calculate maxwords used separately before
+ comparison to prevent overflow.
+
2018-07-24 Mark Wielaard <[email protected]>
* unstrip.c (compare_unalloc_sections): Also compare sh_size.