bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/13471] New: out-of-range indexing error in elf_howto_table


From: mib.bugzilla at gmail dot com
Subject: [Bug binutils/13471] New: out-of-range indexing error in elf_howto_table[ R_386_IRELATIVE]
Date: Fri, 02 Dec 2011 23:37:02 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13471

             Bug #: 13471
           Summary: out-of-range indexing error in elf_howto_table[
                    R_386_IRELATIVE]
           Product: binutils
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


I'm using the Intel compiler to compile binutils and it discovered an
out-of-bounds indexing error at line #326 of elf32-i386.c

Here's the code that's presently there:

    case BFD_RELOC_386_TLS_DESC:
      TRACE ("BFD_RELOC_386_TLS_DESC");
      return &elf_howto_table[R_386_TLS_DESC - R_386_tls_offset];

    case BFD_RELOC_386_IRELATIVE:
      TRACE ("BFD_RELOC_386_IRELATIVE");
      return &elf_howto_table[R_386_IRELATIVE];  /* Bounds error on this line
*/

    case BFD_RELOC_VTABLE_INHERIT:
      TRACE ("BFD_RELOC_VTABLE_INHERIT");
      return &elf_howto_table[R_386_GNU_VTINHERIT - R_386_vt_offset];


Since there are gaps in the elf_howto_table, the R_386_IRELATIVE index needs an
offset.

Thanks!

--Melanie

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



reply via email to

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