cppcheck analysis of gnucash_2.2.9-10.dsc
- ./lib/libc/strptime.c:631 [error] - Dangerous usage of 'd_t_fmt' (strncpy doesn't always 0-terminate it)
- ./lib/libc/strptime.c:870 [error] - Dangerous usage of 't_p_fmt' (strncpy doesn't always 0-terminate it)
- ./lib/libqof/backend/file/qsf-backend.c:492 [error] - Memory leak: path
- ./lib/libqof/backend/file/qsf-backend.c:979 [error] - Mismatching allocation and deallocation: path
- ./lib/libqof/backend/file/qsf-xml-map.c:134 [error] - Memory leak: map_path
- ./lib/libqof/backend/file/qsf-xml-map.c:216 [error] - Memory leak: map_path
- ./lib/libqof/backend/file/qsf-xml.c:202 [error] - Memory leak: path
- ./lib/libqof/backend/file/qsf-xml.c:245 [error] - Memory leak: path
- ./lib/libqof/qof/gnc-date.c:1029 [error] - Memory leak: dupe
- ./lib/libqof/qof/kvp_frame.c:713 [error] - Memory leak: new_frame
- ./lib/libqof/qof/kvp_frame.c:758 [error] - Memory leak: new_frame
- ./lib/libqof/qof/qofbookmerge.c:891 [error] - Possible null pointer dereference: currentRule - otherwise it is redundant to check if currentRule is null at line 894
- ./lib/libqof/qof/qofbookmerge.c:892 [error] - Possible null pointer dereference: currentRule - otherwise it is redundant to check if currentRule is null at line 894
- ./lib/libqof/qof/qofreference.c:145 [error] - Memory leak: reference
- ./lib/libqof/qof/qofsession.c:949 [error] - Memory leak: msg
- ./lib/libqof/qof/qofsession.c:1352 [error] - Memory leak: msg
- ./src/app-utils/option-util.c:2169 [error] - Mismatching allocation and deallocation: symbol
- ./src/backend/file/io-example-account.c:328 [error] - Memory leak: gea
- ./src/backend/file/test/test-save-in-lang.c:85 [error] - Memory leak: new_file
- ./src/backend/postgres/test/test-db.c:944 [error] - Memory leak: filename
- ./src/backend/postgres/upgrade.c:363 [error] - Memory leak: buff
- ./src/calculation/expression_parser.c:1113 [error] - Memory leak: ident
- ./src/calculation/fin-interactive.c:124 [error] - Array 'predefined_fin_vars[9]' index 9 out of bounds
- ./src/engine/binreloc.c:276 [error] - Common realloc mistake: "address_string" nulled but not freed upon failure
- ./src/engine/test-core/test-engine-stuff.c:1423 [error] - Memory leak: numstr
- ./src/gnome-utils/dialog-commodity.c:298 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:340 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:374 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:410 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:728 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:1223 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:1268 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:1271 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-transfer.c:168 [error] - Possible null pointer dereference: xferData - otherwise it is redundant to check if xferData is null at line 171
- ./src/gnome-utils/dialog-transfer.c:169 [error] - Possible null pointer dereference: xferData - otherwise it is redundant to check if xferData is null at line 171
- ./src/gnome-utils/druid-gnc-xml-import.c:863 [error] - Memory leak: string
- ./src/gnome-utils/gnc-html-graph-gog.c:362 [error] - Memory leak: data
- ./src/gnome-utils/gnc-html-graph-gog.c:519 [error] - Memory leak: data
- ./src/gnome-utils/gnc-html-graph-gog.c:555 [error] - Memory leak: xData
- ./src/gnome-utils/gnc-html-graph-gog.c:555 [error] - Memory leak: yData
- ./src/gnome-utils/gnc-main-window.c:2421 [error] - Memory leak: data
- ./src/gnome-utils/gnc-tree-model-account.c:960 [error] - Mismatching allocation and deallocation: parent_string
- ./src/gnome-utils/gnc-tree-model-account.c:1021 [error] - Mismatching allocation and deallocation: child_string
- ./src/gnome-utils/gnc-tree-view.c:2087 [error] - Possible null pointer dereference: node - otherwise it is redundant to check if node is null at line 2088
- ./src/gnome-utils/gnc-tree-view.c:1099 [error] - Mismatching allocation and deallocation: column_name
- ./src/gnome/druid-loan.c:461 [error] - Buffer access out-of-bounds: paymentTos
- ./src/gnome/druid-loan.c:2607 [error] - Memory leak: rrr
- ./src/register/register-gnome/datecell-gnome.c:388 [error] - Possible null pointer dereference: cell - otherwise it is redundant to check if cell is null at line 391
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Wed, 22 Dec 2010 00:58:04 +0000, based on results by cppcheck 1.46