cppcheck analysis of gdb_7.1-1.dsc
- ./bfd/doc/chew.c:1550 [possible error] - Resource leak: f
- ./bfd/elf32-xtensa.c:10561 [error] - Possible null pointer dereference: linkonce_kind
- ./bfd/gen-aout.c:109 [error] - Resource leak: file
- ./bfd/libbfd.c:320 [error] - Memory leak: ptr
- ./bfd/libbfd.c:357 [error] - Memory leak: ptr
- ./gdb/breakpoint.c:10069 [error] - Uninitialized variable: tpnum
- ./gdb/cli/cli-dump.c:157 [error] - Uninitialized variable: obfd
- ./gdb/cli/cli-dump.c:526 [error] - Uninitialized variable: len
- ./gdb/cp-namespace.c:682 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/cp-namespace.c:700 [possible error] - Array 'block[1]' index 2 out of bounds
- ./gdb/gdbserver/linux-low.c:3001 [error] - Resource leak: dir
- ./gdb/gdbserver/linux-low.c:3370 [error] - Resource leak: fd
- ./gdb/gdbserver/linux-sparc-low.c:240 [error] - Uninitialized variable: insn
- ./gdb/gdbserver/spu-low.c:246 [error] - Resource leak: fd
- ./gdb/jv-lang.c:111 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/linux-nat.c:4861 [error] - Resource leak: fd
- ./gdb/mdebugread.c:4622 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/mdebugread.c:4623 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/mdebugread.c:4649 [possible error] - Array 'block[1]' index 2 out of bounds
- ./gdb/mdebugread.c:4651 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/mdebugread.c:4653 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/procfs.c:531 [error] - Resource leak: status
- ./gdb/solib.c:212 [error] - Resource leak: found_file
- ./gdb/spu-linux-nat.c:246 [error] - Resource leak: fd
- ./gdb/testsuite/gdb.base/bigcore.c:270 [error] - Null pointer dereference
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: list1
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: struct1
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: cflags
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: sflags
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: flags
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: flags_combo
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: three_char
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: five_char
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: int_char_combo
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: d1
- ./gdb/testsuite/gdb.base/call-rt-st.c:777 [error] - Memory leak: f3
- ./gdb/testsuite/gdb.base/ending-run.c:32 [error] - Memory leak: p
- ./gdb/testsuite/gdb.base/fileio.c:171 [possible error] - Resource leak: fd
- ./gdb/testsuite/gdb.base/fileio.c:487 [possible error] - Resource leak: ret
- ./gdb/testsuite/gdb.base/randomize.c:27 [error] - Memory leak: p
- ./gdb/testsuite/gdb.base/savedregs.c:48 [error] - Null pointer dereference
- ./gdb/testsuite/gdb.base/valgrind-db-attach.c:28 [error] - Deallocating a deallocated pointer: p
- ./gdb/testsuite/gdb.base/valgrind-db-attach.c:28 [error] - Uninitialized variable: p
- ./gdb/testsuite/gdb.cp/ambiguous.cc:103 [error] - Uninitialized variable: i
- ./gdb/testsuite/gdb.cp/casts.cc:51 [error] - Memory leak: a
- ./gdb/testsuite/gdb.cp/pr-1210.cc:18 [possible error] - Memory leak: obj
- ./gdb/testsuite/gdb.cp/pr-574.cc:39 [possible error] - Memory leak: theB
- ./gdb/testsuite/gdb.cp/printmethod.cc:34 [possible error] - Memory leak: theA
- ./gdb/testsuite/gdb.cp/templates.cc:724 [error] - Uninitialized variable: i
- ./gdb/testsuite/gdb.cp/userdef.cc:105 [error] - Division by zero
- ./gdb/testsuite/gdb.cp/virtbase.cc:88 [possible error] - Memory leak: e
- ./gdb/testsuite/gdb.cp/virtbase.cc:88 [possible error] - Memory leak: b
- ./gdb/testsuite/gdb.mi/mi-syn-frame.c:30 [error] - Possible null pointer dereference: nuller
- ./gdb/testsuite/gdb.multi/crashme.c:11 [error] - Null pointer dereference
- ./gdb/testsuite/gdb.threads/thread-specific.c:40 [possible error] - Array 'args[1]' index 1 out of bounds
- ./opcodes/i386-dis.c:12023 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:12537 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:12542 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:12547 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:12552 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:12557 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:12562 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:13763 [error] - Unusual pointer arithmetic
- ./opcodes/opc2c.c:812 [error] - Resource leak: in
- ./opcodes/opc2c.c:811 [error] - Memory leak: vlist
- ./readline/complete.c:1017 [error] - Wrong assignment of an auto-variable to an effective parameter of a function
- ./readline/examples/rl-fgets.c:245 [error] - Resource leak: fp
- ./readline/examples/rlcat.c:180 [possible error] - Resource leak: fp
- ./readline/examples/rlptytest.c:66 [error] - Memory leak: buf
- ./sim/common/sim-trace.c:1237 [error] - Dangerous usage of 'phase' (strncpy doesn't always 0-terminate it)
- ./sim/erc32/func.c:879 [error] - Array 'evbuf[256]' index 256 out of bounds
- ./sim/h8300/compile.c:1852 [error] - Array 'lreg[18]' index 18 out of bounds
- ./sim/m32c/opc2c.c:725 [error] - Memory leak: vlist
- ./sim/moxie/interp.c:1232 [error] - Resource leak: f
- ./sim/testsuite/sim/cris/c/clone4.c:58 [error] - Memory leak: stack
- ./sim/testsuite/sim/cris/c/openpf1.c:37 [error] - Memory leak: fnam
- ./sim/testsuite/sim/cris/c/openpf1.c:30 [error] - Mismatching allocation and deallocation: f
- ./sim/testsuite/sim/cris/c/openpf2.c:13 [error] - Mismatching allocation and deallocation: f
- ./sim/testsuite/sim/cris/c/pipe2.c:56 [error] - Memory leak: buf
- ./sim/testsuite/sim/cris/c/pipe6.c:42 [error] - Memory leak: buf
- ./sim/testsuite/sim/cris/c/readlink4.c:40 [error] - Data is allocated but not initialized: buf
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:29 +0000, based on results by cppcheck 1.41-modif