* Commit: readelf: Fix off by one error printing a gnu build note name
@ 2017-03-17 17:36 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2017-03-17 17:36 UTC (permalink / raw)
To: binutils
Hi Guys,
I am checking in the patch below to fix an off by one error when
printing the value associated with an ascii name in a GNU BUILD note.
Cheers
Nick
binutils/ChangeLog
2017-03-17 Nick Clifton <nickc@redhat.com>
* readelf.c (print_gnu_build_attribute_name): Fix off by one error
printing the value for a build note with an ascii name.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 5738fe5..ad65f07 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -16848,7 +16848,7 @@ print_gnu_build_attribute_name (Elf_Internal_Note * pnote)
len = left;
printf ("%.*s ", len, name);
left -= len;
- name += len + 1;
+ name += len;
}
else
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-17 17:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-17 17:36 Commit: readelf: Fix off by one error printing a gnu build note name Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).