summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2018-10-16 14:22:33 +0200
committerMark Wielaard <mark@klomp.org>2018-10-20 00:32:14 +0200
commitdce0b3b63ba05e2bebd4543ac9248cc0d48b2d2a (patch)
treefc7733b801de4cedf29b49269f6adf33e3e9324e
parent1e7c230b277b6eb82577a3bc4b56ca291c28964d (diff)
readelf: Make sure readp is smaller than cieend in print_debug_frame_section.
We could end up with a negative length in a call to memchr. https://sourceware.org/bugzilla/show_bug.cgi?id=23782 Signed-off-by: Mark Wielaard <mark@klomp.org>
-rw-r--r--src/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0cbcf80c..602312e7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-16 Mark Wielaard <mark@klomp.org>
+
+ * readelf.c (print_debug_frame_section): Make sure readp is never
+ greater than cieend.
+
2018-10-19 Mark Wielaard <mark@klomp.org>
* dwfl_module_getdwarf.c (adjust_relocs): Check sh_entsize is not