cppcheck analysis of sdcc_2.9.0-5.dsc
- ./as/asranlib/asranlib.c:77 [error] - Memory leak: n
- ./as/asranlib/asranlib.c:678 [error] - Deallocating a deallocated pointer: infp
- ./as/hc08/asmain.c:100 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./as/hc08/asmain.c:102 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./as/link/lkar.c:88 [error] - Memory leak: n
- ./as/mcs51/asmain.c:100 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./as/mcs51/asmain.c:102 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./as/xa51/xa_link.c:710 [error] - Resource leak: lf
- ./as/xa51/xa_link.c:710 [error] - Resource leak: lfs
- ./debugger/mcs51/symtab.c:101 [error] - Null pointer dereference
- ./device/examples/ds390/ow390/thermo21.c:994 [error] - Buffer access out-of-bounds: hist.bin_count
- ./device/examples/ds390/ow390/thermo21.c:992 [error] - Buffer access out-of-bounds: hist.start_range
- ./device/examples/ds390/ow390/thermo21.c:993 [error] - Buffer access out-of-bounds: hist.end_range
- ./device/examples/ds390/ow390/thermodl.c:95 [error] - Array 'argv[2]' index 2 out of bounds
- ./device/examples/ds390/ow390/thermodl.c:97 [error] - Array 'argv[2]' index 2 out of bounds
- ./device/examples/ds390/ow390/thermodl.c:102 [error] - Array 'argv[2]' index 3 out of bounds
- ./device/examples/ds390/ow390/thermodl.c:104 [error] - Array 'argv[2]' index 3 out of bounds
- ./device/examples/ds390/ow390/thermodl.c:129 [error] - Resource leak: fp
- ./device/examples/ds390/tinitalk/tinitalk.c:338 [error] - Resource leak: hexFile
- ./sim/ucsim/app.cc:375 [possible error] - Resource leak: Ser_in
- ./sim/ucsim/app.cc:382 [possible error] - Resource leak: Ser_out
- ./sim/ucsim/app.cc:520 [possible error] - Resource leak: Ser_in
- ./sim/ucsim/app.cc:520 [possible error] - Resource leak: Ser_out
- ./sim/ucsim/app.cc:636 [possible error] - Memory leak: cmd
- ./sim/ucsim/app.cc:792 [possible error] - Memory leak: o
- ./sim/ucsim/app.cc:382 [possible error] - Resource leak: Ser
- ./sim/ucsim/avr.src/avr.cc:110 [possible error] - Memory leak: o
- ./sim/ucsim/cmd.src/cmdlexcl.h:18 [possible error] - Memory leak: cl_ucsim_lexer::string_ptr
- ./sim/ucsim/cmd.src/cmdutil.cc:463 [error] - Memory leak: octal
- ./sim/ucsim/cmd.src/command.cc:193 [possible error] - Memory leak: arg
- ./sim/ucsim/cmd.src/command.cc:262 [possible error] - Memory leak: arg
- ./sim/ucsim/cmd.src/command.cc:284 [possible error] - Memory leak: aname
- ./sim/ucsim/cmd.src/command.cc:319 [possible error] - Memory leak: arg
- ./sim/ucsim/cmd.src/newcmdposix.cc:125 [error] - Resource leak: fi
- ./sim/ucsim/gui.src/obsolete/portmon.src/pmapp.cc:45 [possible error] - Memory leak: b
- ./sim/ucsim/gui.src/serio.src/main.cc:107 [error] - Mismatching allocation and deallocation: string
- ./sim/ucsim/libltdl/ltdl.c:3301 [error] - Possible null pointer dereference: handle - otherwise it is redundant to check if handle is null at line 3320
- ./sim/ucsim/s51.src/s51.cc:56 [possible error] - Memory leak: sim
- ./sim/ucsim/s51.src/uc390.cc:342 [possible error] - Memory leak: h
- ./sim/ucsim/s51.src/uc51.cc:169 [possible error] - Memory leak: h
- ./sim/ucsim/s51.src/uc51.cc:194 [possible error] - Memory leak: cmd
- ./sim/ucsim/s51.src/uc51r.cc:63 [possible error] - Memory leak: h
- ./sim/ucsim/s51.src/uc52.cc:56 [possible error] - Memory leak: h
- ./sim/ucsim/s51.src/uc89c51r.cc:58 [possible error] - Memory leak: h
- ./sim/ucsim/sim.src/obsolete.cc:967 [possible error] - Memory leak: nc
- ./sim/ucsim/sim.src/test_mem_speed.cc:98 [possible error] - Memory leak: con
- ./src/SDCCpeeph.c:2482 [error] - Resource leak: f
- ./src/z80/gen.c:4738 [error] - Invalid number of character ({) when these macros are defined: 'OLD'.
- ./support/makebin/makebin.c:120 [possible error] - Memory leak: rom
- ./support/packihx/packihx.c:428 [possible error] - Resource leak: inFile
- ./support/regression/ports/pic14/support.c:57 [error] - No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./support/regression/ports/pic16/support.c:58 [error] - No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./support/regression/tests/funptrs.c:58 [error] - ### Internal error in Cppcheck. Please report it.
- ./support/valdiag/tests/bug-971834.c:15 [error] - Uninitialized variable: a
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 06:02:09 +0000, based on results by cppcheck 1.41-modif