[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.
- [Bug binutils/17510] probably exploitable crash in strings, (continued)
- [Bug binutils/17510] probably exploitable crash in strings, hanno at hboeck dot de, 2014/10/24
- [Bug binutils/17510] probably exploitable crash in strings, vapier at gentoo dot org, 2014/10/25
- [Bug binutils/17510] strings: crash when given a truncated ELF, vapier at gentoo dot org, 2014/10/25
- [Bug binutils/17510] strings: crash when given a truncated ELF, allan at archlinux dot org, 2014/10/25
- [Bug binutils/17510] strings: crash when given a truncated ELF, lcamtuf at coredump dot cx, 2014/10/25
- [Bug binutils/17510] strings: crash when given a truncated ELF, cvs-commit at gcc dot gnu.org, 2014/10/27
- [Bug binutils/17510] strings: crash when given a truncated ELF, nickc at redhat dot com, 2014/10/27
- [Bug binutils/17510] strings: crash when given a truncated ELF, nickc at redhat dot com, 2014/10/27
- [Bug binutils/17510] strings: crash when given a truncated ELF, nickc at redhat dot com, 2014/10/27
- [Bug binutils/17510] strings: crash when given a truncated ELF, lcamtuf at coredump dot cx, 2014/10/27
- [Bug binutils/17510] strings: crash when given a truncated ELF,
address@hidden <=
- [Bug binutils/17510] strings: crash when given a truncated ELF, cvs-commit at gcc dot gnu.org, 2014/10/28
- [Bug binutils/17510] strings: crash when given a truncated ELF, cvs-commit at gcc dot gnu.org, 2014/10/28