cppcheck analysis of gnucash_2.4.2-1.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:254 [error] - Mismatching allocation and deallocation: key
- ./src/backend/sql/gnc-slots-sql.c:274 [error] - Mismatching allocation and deallocation: key
- ./src/backend/sql/gnc-slots-sql.c:505 [error] - Mismatching allocation and deallocation: key
- ./src/backend/sql/gnc-slots-sql.c:522 [error] - Mismatching allocation and deallocation: key
- ./src/backend/sql/gnc-slots-sql.c:530 [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:2802 [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:1180 [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:4930 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:4952 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:5214 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:5268 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:5562 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:6566 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:6588 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:6610 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7149 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7171 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7193 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7215 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7237 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7268 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7323 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7387 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7434 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7481 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7528 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7575 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7622 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7678 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:7734 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:10497 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:11786 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:11909 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:11940 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:11971 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:12002 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:12372 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:12734 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:12788 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:13133 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:13745 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:15987 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:16123 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:16620 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:16633 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:16669 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:16737 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17335 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17392 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17449 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17506 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17534 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17562 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17605 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17648 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17714 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17780 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17846 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17912 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17954 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17982 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:18045 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:18058 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:18071 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:20749 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:20805 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:21629 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:21927 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:22685 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:22707 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:22994 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:23595 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:23617 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:23837 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:24766 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:25456 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:26074 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:26385 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27506 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27635 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27666 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27688 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27710 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:28439 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:29005 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30166 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30210 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30232 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30468 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30752 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30790 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30828 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:31378 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32315 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32729 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32871 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32884 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:33380 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:34786 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:34849 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:34912 [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, 15 Feb 2011 06:58:04 +0000, based on results by cppcheck 1.46