cppcheck analysis of gdb_7.0.1-2.dsc
- ./bfd/doc/chew.c:1550 [possible error] - Resource leak: f
- ./bfd/elf32-xtensa.c:10525 [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:9209 [error] - Uninitialized variable: tpnum
- ./gdb/cli/cli-dump.c:156 [error] - Uninitialized variable: obfd
- ./gdb/cli/cli-dump.c:525 [error] - Uninitialized variable: len
- ./gdb/cp-namespace.c:594 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/cp-namespace.c:612 [possible error] - Array 'block[1]' index 2 out of bounds
- ./gdb/gdbserver/linux-low.c:3119 [error] - Resource leak: fd
- ./gdb/gdbserver/linux-sparc-low.c:238 [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:4380 [error] - Resource leak: fd
- ./gdb/mdebugread.c:4625 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/mdebugread.c:4626 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/mdebugread.c:4652 [possible error] - Array 'block[1]' index 2 out of bounds
- ./gdb/mdebugread.c:4654 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/mdebugread.c:4656 [possible error] - Array 'block[1]' index 1 out of bounds
- ./gdb/procfs.c:521 [error] - Resource leak: status
- ./gdb/solib.c:213 [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.cp/ambiguous.cc:103 [error] - Uninitialized variable: i
- ./gdb/testsuite/gdb.cp/casts.cc:21 [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:33 [possible error] - Memory leak: theA
- ./gdb/testsuite/gdb.cp/templates.cc:721 [error] - Uninitialized variable: i
- ./gdb/testsuite/gdb.cp/userdef.cc:105 [error] - Division by zero
- ./gdb/testsuite/gdb.mi/mi-syn-frame.c:30 [error] - Possible null pointer dereference: nuller
- ./gdb/testsuite/gdb.threads/thread-specific.c:40 [possible error] - Array 'args[1]' index 1 out of bounds
- ./opcodes/i386-dis.c:10175 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:10614 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:10619 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:10624 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:10629 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:10634 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:10639 [error] - Unusual pointer arithmetic
- ./opcodes/i386-dis.c:11816 [error] - Unusual pointer arithmetic
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