[prev in list] [next in list] [prev in thread] [next in thread] 

List:       binutils-bugs
Subject:    [Bug binutils/11416] New: a small miscode in binutils/readelf.c
From:       "aflyhorse at foxmail dot com" <sourceware-bugzilla () sourceware ! org>
Date:       2010-03-22 15:20:52
Message-ID: 20100322152051.11416.aflyhorse () foxmail ! com
[Download RAW message or body]

on line 6197 to 6205:

          unsigned char buf[5];
          unsigned int i, len;
          unsigned long offset;
          for (i = 0; i < 9; i++)
            {
              GET_OP (buf[i]);
              if ((buf[i] & 0x80) == 0)
                break;
            }

An obviously small wrong definition on the size of buf, which will cause
cc1.exe to treat warnings as errors.
Change size [5] to [9], am I right?

(Reported to gcc but been reoriented to here)

-- 
           Summary: a small miscode in binutils/readelf.c
           Product: binutils
           Version: 2.20
            Status: NEW
          Severity: minor
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: aflyhorse at foxmail dot com
                CC: aflyhorse at foxmail dot com,bug-binutils at gnu dot org
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: x86_64-w64-mingw32


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic