cppcheck analysis of gnucash_2.4.0-5.dsc
- ./lib/libc/strptime.c:646 [error] - Dangerous usage of 'd_t_fmt' (strncpy doesn't always 0-terminate it)
- ./lib/libc/strptime.c:891 [error] - Dangerous usage of 't_p_fmt' (strncpy doesn't always 0-terminate it)
- ./src/app-utils/option-util.c:2196 [error] - Mismatching allocation and deallocation: symbol
- ./src/backend/sql/gnc-slots-sql.c:249 [error] - Mismatching allocation and deallocation: key
- ./src/backend/sql/gnc-slots-sql.c:269 [error] - Mismatching allocation and deallocation: key
- ./src/backend/sql/gnc-slots-sql.c:499 [error] - Mismatching allocation and deallocation: key
- ./src/backend/sql/gnc-slots-sql.c:516 [error] - Mismatching allocation and deallocation: key
- ./src/backend/sql/gnc-slots-sql.c:524 [error] - Mismatching allocation and deallocation: key
- ./src/backend/xml/io-example-account.c:337 [error] - Memory leak: gea
- ./src/backend/xml/test/test-save-in-lang.c:87 [error] - Memory leak: new_file
- ./src/calculation/expression_parser.c:1123 [error] - Memory leak: ident
- ./src/calculation/fin-interactive.c:128 [error] - Array 'predefined_fin_vars[9]' index 9 out of bounds
- ./src/engine/test-core/test-engine-stuff.c:1450 [error] - Memory leak: numstr
- ./src/gnome-utils/dialog-commodity.c:305 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:348 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:382 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:418 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:751 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:1281 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:1331 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-commodity.c:1334 [error] - Mismatching allocation and deallocation: namespace
- ./src/gnome-utils/dialog-transfer.c:183 [error] - Possible null pointer dereference: xferData - otherwise it is redundant to check if xferData is null at line 186
- ./src/gnome-utils/dialog-transfer.c:184 [error] - Possible null pointer dereference: xferData - otherwise it is redundant to check if xferData is null at line 186
- ./src/gnome-utils/druid-gnc-xml-import.c:938 [error] - Memory leak: string
- ./src/gnome-utils/gnc-main-window.c:2798 [error] - Memory leak: data
- ./src/gnome-utils/gnc-tree-model-account.c:998 [error] - Mismatching allocation and deallocation: parent_string
- ./src/gnome-utils/gnc-tree-model-account.c:1065 [error] - Mismatching allocation and deallocation: child_string
- ./src/gnome-utils/gnc-tree-view.c:2163 [error] - Possible null pointer dereference: node - otherwise it is redundant to check if node is null at line 2164
- ./src/gnome-utils/gnc-tree-view.c:1139 [error] - Mismatching allocation and deallocation: column_name
- ./src/gnome/druid-loan.c:2712 [error] - Memory leak: rrr
- ./src/html/gnc-html-graph-gog-webkit.c:488 [error] - Memory leak: temp_str
- ./src/html/gnc-html-webkit.c:374 [error] - Memory leak: object_classid
- ./src/libqof/qof/gnc-date.c:1091 [error] - Memory leak: dupe
- ./src/libqof/qof/kvp_frame.c:741 [error] - Memory leak: new_frame
- ./src/libqof/qof/kvp_frame.c:786 [error] - Memory leak: new_frame
- ./src/libqof/qof/qofbookmerge.c:1050 [error] - Possible null pointer dereference: currentRule - otherwise it is redundant to check if currentRule is null at line 1053
- ./src/libqof/qof/qofbookmerge.c:1051 [error] - Possible null pointer dereference: currentRule - otherwise it is redundant to check if currentRule is null at line 1053
- ./src/libqof/qof/qofreference.c:159 [error] - Memory leak: reference
- ./src/libqof/qof/qofsession.c:1070 [error] - Memory leak: msg
- ./src/optional/python-bindings/gnucash_core.c:3368 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:3399 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:4052 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:4110 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:4183 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:4259 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:4281 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:4303 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:4325 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:4928 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:4950 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:5204 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:5258 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:5552 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:6554 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:6576 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:6598 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7137 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7159 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7181 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7203 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7225 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7256 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7311 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7375 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7422 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7469 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7516 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7563 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7610 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7666 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7722 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:10479 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:11766 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:11887 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:11918 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:11949 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:11980 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:12350 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:12712 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:12766 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:13109 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:13721 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:15932 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:16068 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:16565 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:16578 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:16614 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:16682 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17280 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17337 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17394 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17451 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17479 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17507 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17550 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17593 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17659 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17725 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17791 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17857 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17899 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17927 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17990 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:18003 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:18016 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:20684 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:20740 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:21558 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:21856 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:22614 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:22636 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:22921 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:23522 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:23544 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:23764 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:24691 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:25381 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:25997 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:26308 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27407 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27536 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27567 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27589 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27611 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:28336 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:28902 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30063 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30107 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30129 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30365 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30649 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30687 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30725 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:31273 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32206 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32616 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32758 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32771 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:33267 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:34657 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:34720 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:34783 [error] - Allocation with malloc, memcpy doesn't release it.
- ./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 Tue, 08 Feb 2011 06:58:57 +0000, based on results by cppcheck 1.46