cppcheck analysis of gretl_1.9.3-1.dsc
- ./cli/gretlcli.c:451 [error] - Memory leak: line
- ./gui2/database.c:2826 [error] - Resource leak: dir
- ./gui2/datafiles.c:326 [error] - Common realloc mistake: "datacoll" nulled but not freed upon failure
- ./gui2/datafiles.c:332 [error] - Common realloc mistake: "pscoll" nulled but not freed upon failure
- ./gui2/gpt_control.c:3032 [error] - Memory leak: fstr
- ./gui2/guiprint.c:322 [error] - Resource leak: fp
- ./gui2/session.c:1937 [error] - Mismatching allocation and deallocation: s
- ./gui2/settings.c:447 [error] - Mismatching allocation and deallocation: target
- ./gui2/settings.c:457 [error] - Mismatching allocation and deallocation: target
- ./gui2/settings.c:463 [error] - Mismatching allocation and deallocation: target
- ./gui2/settings.c:474 [error] - Mismatching allocation and deallocation: target
- ./gui2/textbuf.c:2856 [error] - Mismatching allocation and deallocation: buf
- ./lib/src/adf_kpss.c:983 [error] - Uninitialized variable: Etbar
- ./lib/src/adf_kpss.c:984 [error] - Uninitialized variable: Vtbar
- ./lib/src/adf_kpss.c:1006 [error] - Uninitialized variable: Etbar
- ./lib/src/adf_kpss.c:1007 [error] - Uninitialized variable: Vtbar
- ./lib/src/compare.c:181 [error] - Memory leak: mask
- ./lib/src/dbread.c:1560 [error] - Memory leak: x
- ./lib/src/dbread.c:3897 [error] - Memory leak: x
- ./lib/src/describe.c:4019 [error] - Memory leak: dens
- ./lib/src/describe.c:5113 [error] - Memory leak: x
- ./lib/src/gretl_bfgs.c:1550 [error] - Memory leak: u
- ./lib/src/gretl_foreign.c:188 [error] - Memory leak: fname
- ./lib/src/gretl_func.c:5718 [error] - Memory leak: call
- ./lib/src/gretl_paths.c:670 [error] - Resource leak: dir
- ./lib/src/interact.c:203 [error] - Mismatching allocation and deallocation: tmp
- ./lib/src/options.c:800 [error] - Possible null pointer dereference: op
- ./lib/src/options.c:476 [error] - Common realloc mistake: "optstrs" nulled but not freed upon failure
- ./lib/src/usermat.c:1196 [error] - Possible null pointer dereference: S
- ./plugin/arma_x12.c:57 [error] - Common realloc mistake: "argv" nulled but not freed upon failure
- ./plugin/biprobit.c:974 [error] - Memory leak: theta
- ./plugin/biprobit.c:1320 [error] - Memory leak: bp
- ./plugin/excel_import.c:569 [error] - Common realloc mistake: "sst" nulled but not freed upon failure
- ./plugin/excel_import.c:320 [error] - Mismatching allocation and deallocation: str
- ./plugin/excel_import.c:1403 [error] - Memory leak: blanks
- ./plugin/jrestrict.c:3151 [error] - Memory leak: J
- ./plugin/leverage.c:436 [error] - Common realloc mistake: "work" nulled but not freed upon failure
- ./plugin/libole2/ms-ole.c:471 [error] - Memory leak: pps
- ./plugin/ods_import.c:1314 [error] - Mismatching allocation and deallocation: abspath
- ./plugin/ods_import.c:1288 [error] - Memory leak: abspath
- ./plugin/quantreg.c:1137 [error] - Possible null pointer dereference: tbeta
- ./plugin/workbook.c:621 [error] - Memory leak: problem_loading
- ./plugin/zipunzip/zfileio.c:206 [error] - Memory leak: f
- ./plugin/zipunzip/zipmain.c:692 [error] - Mismatching allocation and deallocation: tempath
- ./plugin/zipunzip/zipmain.c:703 [error] - Resource leak: fr
- ./plugin/zipunzip/zipmain.c:1122 [error] - Mismatching allocation and deallocation: tempath
- ./plugin/zipunzip/zipmain.c:1069 [error] - Memory leak: tempath
- ./plugin/zipunzip/zipwork.c:428 [error] - Resource leak: fin
- ./plugin/zipunzip/zsystem.c:318 [error] - Mismatching allocation and deallocation: xname
- ./plugin/zipunzip/zsystem.c:416 [error] - Mismatching allocation and deallocation: tmp
- ./plugin/zipunzip/zsystem.c:420 [error] - Mismatching allocation and deallocation: tmp
- ./plugin/zipunzip/zsystem.c:249 [error] - Mismatching allocation and deallocation: tmp
- ./share/bcih/mkbin.c:15 [error] - Buffer overrun possible for long cmd-line args
- ./tests/diehard.c:1211 [error] - Array 'equiv_0[8000]' index 15999 out of bounds
- ./tests/nist-nls/nist-nls-test.c:904 [error] - Common realloc mistake: "file_list" nulled but not freed upon failure
- ./tests/nist-nls/nist-nls-test.c:704 [error] - Passing value 0 to log() leads to undefined result
- ./tests/nistcheck.c:263 [error] - Passing value 0 to log() leads to undefined result
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:30 +0000, based on results by cppcheck 1.46