summaryrefslogtreecommitdiff
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2022-08-01 02:02:16 +0200
committerMark Wielaard <mark@klomp.org>2022-08-01 11:09:50 +0200
commitd0ff4e224738adf34eba38dc33ffda67e5da6634 (patch)
treee8acd2204c2520b961774e2611dfd4ddc92d4093 /src/ChangeLog
parent369c021c6eedae3665c1dbbaa4fc43afbbb698f4 (diff)
downloadelfutils-d0ff4e224738adf34eba38dc33ffda67e5da6634.tar.gz
readelf: memrchr searches backwards but takes the start buf as argument
The bug (caught by valgrind) was giving memrchr to end of the buffer. Also as cleanup, Use d_val not d_ptr for calculating offset.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index db20a6ef..42ce6640 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2022-08-01 Mark Wielaard <mark@klomp.org>
+
+ * readelf.c (handle_dynamic): Pass start of buffer to memrchr.
+ Use dyn->d_un.d_val for offsets instead of d_ptr.
+
2022-04-28 Di Chen <dichen@redhat.com>
* readelf.c (options): Add use-dynamic 'D'.