cppcheck analysis of gclcvs_2.7.0-101.dsc
- ./binutils/bfd/aout-encap.c:160 [error] - Uninitialized variable: need_coff_header
- ./binutils/bfd/elflink.c:7629 [error] - Uninitialized variable: sub
- ./binutils/bfd/elfxx-mips.c:1597 [error] - Uninitialized variable: int_reloc1
- ./binutils/bfd/elfxx-mips.c:1599 [error] - Uninitialized variable: int_reloc2
- ./binutils/bfd/gen-aout.c:108 [error] - Resource leak: file
- ./binutils/bfd/libbfd.c:207 [error] - Memory leak: ptr
- ./binutils/binutils/nlmconv.c:1089 [error] - Resource leak: custom_data
- ./binutils/binutils/nlmconv.c:1089 [error] - Resource leak: help_data
- ./binutils/binutils/nlmconv.c:1089 [error] - Resource leak: message_data
- ./binutils/binutils/nlmconv.c:1089 [error] - Resource leak: rpc_data
- ./binutils/binutils/nlmconv.c:1089 [error] - Resource leak: shared_data
- ./binutils/binutils/objdump.c:2975 [style] - Redundant assignment of "seenflag" in switch
- ./binutils/binutils/prdbg.c:2350 [error] - Memory leak: method_name
- ./binutils/binutils/readelf.c:6578 [error] - Unusual pointer arithmetic
- ./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/srconv.c:1571 [error] - Memory leak: info
- ./binutils/binutils/sysinfo.c:737 [error] - Memory leak: yyptr
- ./binutils/gas/config/obj-vms.c:1373 [error] - Possible null pointer dereference: spnt - otherwise it is redundant to check if spnt is null at line 1374
- ./binutils/gas/config/tc-arm.c:1439 [error] - Null pointer dereference
- ./binutils/gas/config/tc-arm.c:2054 [error] - Null pointer dereference
- ./binutils/gas/config/tc-arm.c:2901 [error] - Null pointer dereference
- ./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 [error] - Memory leak: save_str
- ./binutils/gas/config/tc-m32r.c:500 [error] - Possible null pointer dereference: exp - otherwise it is redundant to check if exp is null at line 501
- ./binutils/gas/config/tc-m68k.c:1994 [error] - Dangerous usage of 'buf' (strncpy doesn't always 0-terminate it)
- ./binutils/gas/config/tc-maxq.c:918 [error] - Buffer access out-of-bounds: temp
- ./binutils/gas/config/tc-maxq.c:369 [error] - Uninitialized variable: diff
- ./binutils/gas/config/tc-maxq.c:370 [error] - Uninitialized variable: call_addr
- ./binutils/gas/config/tc-mn10200.c:536 [style] - Redundant assignment of "opcode" in switch
- ./binutils/gas/config/tc-mn10200.c:616 [style] - Redundant assignment of "opcode" in switch
- ./binutils/gas/config/tc-ns32k.c:674 [error] - instance of "addr_mode" object destroyed immediately
- ./binutils/gas/config/tc-sh.c:3368 [error] - instance of "sh_count_relocs" object destroyed immediately
- ./binutils/gas/config/tc-sh.c:607 [error] - Possible null pointer dereference: exp - otherwise it is redundant to check if exp is null at line 608
- ./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/source.c:263 [error] - Resource leak: ifp
- ./binutils/ld/ldmain.c:867 [error] - Resource leak: file
- ./binutils/libiberty/_doprnt.c:244 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:245 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:247 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:248 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:250 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:251 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:253 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:254 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:257 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:260 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:264 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:266 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:268 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:269 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:271 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:272 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:275 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:277 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:280 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:282 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:284 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/_doprnt.c:285 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./binutils/libiberty/cp-demangle.c:2894 [error] - instance of "d_print_mod" object destroyed immediately
- ./binutils/libiberty/cp-demangle.c:3101 [error] - instance of "d_print_mod" object destroyed immediately
- ./binutils/libiberty/cp-demangle.c:3209 [error] - instance of "d_print_mod" object destroyed immediately
- ./binutils/libiberty/cp-demangle.c:3567 [error] - instance of "d_print_mod" object destroyed immediately
- ./binutils/libiberty/mpw.c:690 [error] - Resource leak: fd
- ./binutils/libiberty/obstack.c:198 [error] - Possible null pointer dereference: chunk
- ./binutils/libiberty/obstack.c:199 [error] - Possible null pointer dereference: chunk
- ./binutils/libiberty/obstack.c:258 [error] - Possible null pointer dereference: chunk
- ./binutils/libiberty/obstack.c:259 [error] - Possible null pointer dereference: chunk
- ./binutils/libiberty/regex.c:745 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:990 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:999 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1009 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1022 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1031 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1040 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1049 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1058 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1060 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1070 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1072 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1077 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1079 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:1167 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:2625 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:2631 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:2644 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:2657 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:3821 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:3842 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:3929 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:3958 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:3968 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:3982 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:3999 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:4185 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:4213 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:4309 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:4329 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:4817 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:4832 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:4868 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:4880 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:5986 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:5988 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:6798 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:6845 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:6846 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:6993 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7000 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7020 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7057 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7064 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7245 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7259 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7286 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7299 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7305 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7344 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7371 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7373 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7532 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7554 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7615 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7664 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7677 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7725 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7789 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7799 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/libiberty/regex.c:7804 [error] - instance of "wcs_name" object destroyed immediately
- ./binutils/opcodes/alpha-dis.c:106 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/arc-dis.c:1211 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/cris-dis.c:1475 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/d10v-dis.c:45 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/d30v-dis.c:48 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/fr30-dis.c:605 [error] - Uninitialized variable: buf
- ./binutils/opcodes/fr30-dis.c:611 [error] - Uninitialized variable: buf
- ./binutils/opcodes/frv-dis.c:696 [error] - Uninitialized variable: buf
- ./binutils/opcodes/frv-dis.c:702 [error] - Uninitialized variable: buf
- ./binutils/opcodes/hppa-dis.c:380 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/i370-dis.c:40 [error] - Uninitialized variable: buffer
- ./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/i860-dis.c:97 [error] - Uninitialized variable: buff
- ./binutils/opcodes/i960-dis.c:63 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/ip2k-dis.c:599 [error] - Uninitialized variable: buf
- ./binutils/opcodes/ip2k-dis.c:605 [error] - Uninitialized variable: buf
- ./binutils/opcodes/iq2000-dis.c:477 [error] - Uninitialized variable: buf
- ./binutils/opcodes/iq2000-dis.c:483 [error] - Uninitialized variable: buf
- ./binutils/opcodes/m10200-dis.c:42 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/m10200-dis.c:49 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/m10300-dis.c:45 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/m10300-dis.c:51 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/m32r-dis.c:548 [error] - Uninitialized variable: buf
- ./binutils/opcodes/m32r-dis.c:554 [error] - Uninitialized variable: buf
- ./binutils/opcodes/m88k-dis.c:544 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/mips-dis.c:1259 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/mips-dis.c:1697 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/mips-dis.c:1200 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/mmix-dis.c:259 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/openrisc-dis.c:423 [error] - Uninitialized variable: buf
- ./binutils/opcodes/openrisc-dis.c:429 [error] - Uninitialized variable: buf
- ./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.
- ./binutils/opcodes/pdp11-dis.c:54 [error] - Uninitialized variable: x
- ./binutils/opcodes/ppc-dis.c:134 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/s390-mkopc.c:79 [error] - Common realloc mistake: "op_array" nulled but not freed upon failure
- ./binutils/opcodes/sh64-dis.c:607 [error] - Uninitialized variable: data
- ./binutils/opcodes/sparc-dis.c:252 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/tic4x-dis.c:813 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/tic54x-dis.c:54 [error] - Uninitialized variable: opbuf
- ./binutils/opcodes/tic54x-dis.c:117 [error] - Uninitialized variable: opbuf
- ./binutils/opcodes/tic54x-dis.c:192 [error] - Uninitialized variable: buf
- ./binutils/opcodes/tic80-dis.c:344 [error] - Uninitialized variable: buffer
- ./binutils/opcodes/xstormy16-dis.c:456 [error] - Uninitialized variable: buf
- ./binutils/opcodes/xstormy16-dis.c:462 [error] - Uninitialized variable: buf
- ./binutils/opcodes/z8k-dis.c:74 [error] - Uninitialized variable: mybuf
- ./gmp3/tune/common.c:1150 [error] - Common realloc mistake: "p" nulled but not freed upon failure
- ./o/NeXTunixfasl.c:101 [error] - Memory leak: hdrbuf
- ./o/NeXTunixsave.c:179 [error] - Memory leak: buf
- ./o/array.c:895 [error] - Return of the address of an auto-variable
- ./o/gnumalloc.c:652 [error] - Memory leak: ptr
- ./o/malloc.c:623 [error] - Memory leak: ptr
- ./o/rel_stand.c:85 [error] - Resource leak: symin
- ./o/rel_sun4.c:25 [error] - Uninitialized variable: x
- ./o/run_process.c:463 [error] - Memory leak: host
- ./o/sfaslelf.c:111 [error] - Resource leak: symin
- ./o/unexdyld.c:1062 [error] - Memory leak: hdrbuf
- ./o/unexnt.c:285 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./o/unexnt.c:257 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 20 Dec 2010 21:14:13 +0000, based on results by cppcheck 1.46