This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/14289] New: bfd_pef_xlib_read_header overwrites stackmemory


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]