cppcheck analysis of gclcvs_2.7.0-98.dsc
- ./binutils/bfd/aout-encap.c:160 [error] - Uninitialized variable: need_coff_header
- ./binutils/bfd/doc/chew.c:1545 [possible error] - Resource leak: f
- ./binutils/bfd/elf32-xtensa.c:9353 [error] - Possible null pointer dereference: linkonce_kind
- ./binutils/bfd/gen-aout.c:108 [error] - Resource leak: file
- ./binutils/bfd/libbfd.c:207 [error] - Memory leak: ptr
- ./binutils/binutils/nlmconv.c:1089 [possible error] - Resource leak: custom_data
- ./binutils/binutils/nlmconv.c:1089 [possible error] - Resource leak: help_data
- ./binutils/binutils/nlmconv.c:1089 [possible error] - Resource leak: message_data
- ./binutils/binutils/nlmconv.c:1089 [possible error] - Resource leak: rpc_data
- ./binutils/binutils/nlmconv.c:1089 [possible error] - Resource leak: shared_data
- ./binutils/binutils/prdbg.c:2350 [error] - Memory leak: method_name
- ./binutils/binutils/readelf.c:321 [possible error] - Memory leak: mvar
- ./binutils/binutils/readelf.c:6474 [error] - Memory leak: e_data
- ./binutils/binutils/readelf.c:6831 [error] - Memory leak: lengths
- ./binutils/binutils/readelf.c:11201 [error] - Memory leak: iconf
- ./binutils/binutils/readelf.c:6578 [error] - Unusual pointer arithmetic
- ./binutils/binutils/srconv.c:1571 [error] - Memory leak: info
- ./binutils/gas/config/tc-frv.c:943 [error] - Possible null pointer dereference: this_insn - otherwise it is redundant to check if this_insn is null at line 946
- ./binutils/gas/config/tc-i386.c:6412 [possible error] - Memory leak: save_str
- ./binutils/gas/config/tc-sh64.c:375 [error] - Uninitialized variable: mode_start_frag
- ./binutils/gas/itbl-ops.c:623 [error] - Undefined behaviour: s is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./binutils/gas/itbl-ops.c:630 [error] - Undefined behaviour: s is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./binutils/gas/testsuite/gas/all/itbl-test.c:102 [error] - Resource leak: fas
- ./binutils/gprof/corefile.c:138 [error] - Resource leak: file
- ./binutils/gprof/gmon_io.c:754 [possible error] - Resource leak: ofp
- ./binutils/gprof/source.c:263 [error] - Resource leak: ifp
- ./binutils/intl/bindtextdom.c:123 [error] - Memory leak: new_dirname
- ./binutils/intl/bindtextdom.c:145 [error] - Memory leak: new_binding
- ./binutils/intl/bindtextdom.c:155 [error] - Memory leak: new_binding
- ./binutils/intl/bindtextdom.c:150 [error] - Memory leak: new_binding
- ./binutils/intl/cat-compat.c:109 [possible error] - Memory leak: new_name
- ./binutils/ld/ldexp.c:1142 [possible error] - Array 'data[1]' index 1 out of bounds
- ./binutils/ld/ldexp.c:1143 [possible error] - Array 'data[1]' index 2 out of bounds
- ./binutils/ld/ldexp.c:1144 [possible error] - Array 'data[1]' index 3 out of bounds
- ./binutils/ld/ldmain.c:867 [error] - Resource leak: file
- ./binutils/libiberty/mpw.c:690 [error] - Resource leak: fd
- ./binutils/opcodes/i386-dis.c:3022 [error] - Unusual pointer arithmetic
- ./binutils/opcodes/i386-dis.c:3027 [error] - Unusual pointer arithmetic
- ./binutils/opcodes/i386-dis.c:3032 [error] - Unusual pointer arithmetic
- ./binutils/opcodes/i386-dis.c:3037 [error] - Unusual pointer arithmetic
- ./binutils/opcodes/i386-dis.c:3042 [error] - Unusual pointer arithmetic
- ./binutils/opcodes/i386-dis.c:3047 [error] - Unusual pointer arithmetic
- ./binutils/opcodes/i386-dis.c:3958 [error] - Unusual pointer arithmetic
- ./binutils/opcodes/or32-opc.c:982 [error] - Undefined behaviour: disassembled is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./binutils/opcodes/or32-opc.c:1000 [error] - Undefined behaviour: disassembled is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./binutils/opcodes/or32-opc.c:1002 [error] - Undefined behaviour: disassembled is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./binutils/opcodes/or32-opc.c:1005 [error] - Undefined behaviour: disassembled is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./binutils/opcodes/or32-opc.c:1039 [error] - Undefined behaviour: disassembled is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./binutils/opcodes/or32-opc.c:1046 [error] - Undefined behaviour: disassembled is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./gcl-tk/tkMain.c:555 [possible error] - Array 'body[1]' index 3 out of bounds
- ./gmp3/tests/misc/t-scanf.c:147 [error] - Resource leak: fp
- ./gmp3/tests/misc/t-scanf.c:168 [error] - Resource leak: fp
- ./o/NeXTunixfasl.c:101 [error] - Memory leak: hdrbuf
- ./o/NeXTunixfasl.c:161 [error] - Resource leak: fd
- ./o/NeXTunixsave.c:179 [error] - Memory leak: buf
- ./o/gnumalloc.c:652 [error] - Memory leak: ptr
- ./o/malloc.c:623 [error] - Memory leak: ptr
- ./o/num_co.c:361 [error] - Invalid number of character ({) when these macros are defined: 'IEEEFLOAT'.
- ./o/num_co.c:361 [error] - Invalid number of character ({) when these macros are defined: 'IEEEFLOAT;BAD_FPCHIP'.
- ./o/num_co.c:361 [error] - Invalid number of character ({) when these macros are defined: 'IEEEFLOAT;NS32K'.
- ./o/rel_stand.c:85 [error] - Resource leak: symin
- ./o/run_process.c:295 [error] - Uninitialized variable: cmdline
- ./o/sfaslelf.c:111 [error] - Resource leak: symin
- ./o/unexdyld.c:1062 [error] - Memory leak: hdrbuf
- ./o/unexnt.c:500 [error] - Resource leak: map
- ./o/unexnt.c:498 [error] - Uninitialized variable: start
- ./unixport/rsym_nt.c:66 [error] - Resource leak: fp
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 05:48:28 +0000, based on results by cppcheck 1.41-modif