bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/11416] New: a small miscode in binutils/readelf.c


From: aflyhorse at foxmail dot com
Subject: [Bug binutils/11416] New: a small miscode in binutils/readelf.c
Date: 22 Mar 2010 15:20:52 -0000

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.




reply via email to

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