bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/17510] strings: crash when given a truncated ELF


From: address@hidden
Subject: [Bug binutils/17510] strings: crash when given a truncated ELF
Date: Mon, 27 Oct 2014 21:03:48 +0000

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

--- Comment #8 from Andreas Schwab <address@hidden> ---
This should fix it:

diff --git a/bfd/srec.c b/bfd/srec.c
index 9ed2080..0c473b2 100644
--- a/bfd/srec.c
+++ b/bfd/srec.c
@@ -452,7 +452,7 @@ srec_scan (bfd *abfd)
     case 'S':
       {
         file_ptr pos;
-        char hdr[3];
+        unsigned char hdr[3];
         unsigned int bytes, min_bytes;
         bfd_vma address;
         bfd_byte *data;

-- 
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]