This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/14289] New: bfd_pef_xlib_read_header overwrites stackmemory
- From: "johnw at boostpro dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 24 Jun 2012 23:18:57 +0000
- Subject: [Bug gdb/14289] New: bfd_pef_xlib_read_header overwrites stackmemory
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14289
Bug #: 14289
Summary: bfd_pef_xlib_read_header overwrites stack memory
Product: gdb
Version: 7.4
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: johnw@boostpro.com
Classification: Unclassified
In pef.c, there is this declaration:
unsigned char buf[76];
But later in the same function, this call:
header->old_implementation_version = bfd_getb32 (buf + 76);
This overwrites stack from &buf[76] to &buf[80].
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.