[Bug binutils/11419] array signature[8] may be used uninitialized

2010-04-01 Thread aflyhorse at foxmail dot com

--- Additional Comments From aflyhorse at foxmail dot com  2010-04-02 03:59 
---
No one repeats

-- 


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

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


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


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

2010-03-22 Thread aflyhorse at foxmail dot com
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.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/11419] New: array signature[8] may be used uninitialized

2010-03-22 Thread aflyhorse at foxmail dot com
gcc -DHAVE_CONFIG_H -I. -I../../src/binutils  -I. -I../../src/binutils -I../bfd
-I../../src/binutils/../bfd -I../../src/binutils/../include -LOCALEDIR=\/ming
w64/share/locale\ -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -stri
ct-prototypes -Wmissing-prototypes -Wshadow -Wno-format -Werror -O3 -fomit-
frame-pointer -pipe -march=k8 -mtune=k8 -mfpmath=sse -m64 -m128bit-long-
double -minline-stringops-dynamically -Wa,-march=k8 -Wa,-mtune=k8 -
D__USE_MINGW_ACCESS -MT dwarf.o -MD -MP -MF .deps/dwarf.Tpo -c -o 
dwarf.o ../../src/binutils/dwarf.c
cc1.exe: warnings being treated as errors
../../src/binutils/dwarf.c: In function 'process_debug_info':
../../src/binutils/dwarf.c:1948:21: error: 'signature[0]' may be used 
uninitialized in this function
../../src/binutils/dwarf.c:1948:21: error: 'signature[1]' may be used 
uninitialized in this function
../../src/binutils/dwarf.c:1948:21: error: 'signature[2]' may be used 
uninitialized in this function
../../src/binutils/dwarf.c:1948:21: error: 'signature[3]' may be used 
uninitialized in this function
../../src/binutils/dwarf.c:1948:21: error: 'signature[4]' may be used 
uninitialized in this function
../../src/binutils/dwarf.c:1948:21: error: 'signature[5]' may be used 
uninitialized in this function
../../src/binutils/dwarf.c:1948:21: error: 'signature[6]' may be used 
uninitialized in this function
../../src/binutils/dwarf.c:1948:21: error: 'signature[7]' may be used 
uninitialized in this function
make[4]: *** [dwarf.o] Error 1

Explicitly initialize unsigned char signature[8]={0}; in dwarf.c line 1948?

-- 
   Summary: array signature[8] may be used uninitialized
   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


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

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


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils