summaryrefslogtreecommitdiff
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2017-03-24 14:10:26 +0100
committerMark Wielaard <mark@klomp.org>2017-04-03 23:47:59 +0200
commitb0b58c5e0b34e54194aa042f2310af58ee7de603 (patch)
tree833f7fb0c98218a3af8450f8d5171e320b4f20d3 /src/ChangeLog
parent9d84fdd78705d7a1b9947a9f4ca77fbccdd76d4a (diff)
downloadelfutils-b0b58c5e0b34e54194aa042f2310af58ee7de603.tar.gz
Use the empty string for note names with zero size (without any data).
ELF notes can have a zero sized name. In which case there is no data at all (so also no zero terminator). Make sure to use the empty string for such notes if the code does not otherwise explicitly check n_namesz. https://sourceware.org/bugzilla/show_bug.cgi?id=21300 Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9dd76c00..41381aa0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
2017-03-24 Mark Wielaard <mjw@redhat.com>
+ * elfcmp.c (main): If n_namesz == 0 then the note name data is the
+ empty string.
+ * readelf.c (handle_notes_data): Likewise.
+
+2017-03-24 Mark Wielaard <mjw@redhat.com>
+
* readelf.c (handle_gnu_hash): Check inner < max_nsyms before
indexing into chain array.