bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/17453] Two issues found by AddressSanitizer


From: markus at trippelsdorf dot de
Subject: [Bug ld/17453] Two issues found by AddressSanitizer
Date: Fri, 03 Oct 2014 11:02:10 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17453

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
Fix for 2)

diff --git a/binutils/readelf.c b/binutils/readelf.c
index d9c12cc8da61..1a4c4b6bea0c 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4400,7 +4400,7 @@ process_program_headers (FILE * file)
                error (_("Internal error: failed to create format string to
display program interpreter\n"));

              program_interpreter[0] = 0;
-             if (fscanf (file, fmt, program_interpreter) <= 0)
+             if (fscanf (file, fmt, program_interpreter - 1) <= 0)
                error (_("Unable to read program interpreter name\n"));

              if (do_segments)

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]