cppcheck analysis of gnucash_2.4.4-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:184 [error] - Possible null pointer dereference: xferData - otherwise it is redundant to check if xferData is null at line 187
- ./src/gnome-utils/dialog-transfer.c:185 [error] - Possible null pointer dereference: xferData - otherwise it is redundant to check if xferData is null at line 187
- ./src/gnome-utils/druid-gnc-xml-import.c:938 [error] - Memory leak: string
- ./src/gnome-utils/gnc-main-window.c:1931 [error] - Memory leak: old_page_name
- ./src/gnome-utils/gnc-main-window.c:1931 [error] - Memory leak: old_page_long_name
- ./src/gnome-utils/gnc-main-window.c:2824 [error] - Memory leak: data
- ./src/gnome-utils/gnc-tree-model-account.c:1004 [error] - Mismatching allocation and deallocation: parent_string
- ./src/gnome-utils/gnc-tree-model-account.c:1071 [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:17357 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17414 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17471 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17528 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17556 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17584 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17627 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17670 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17736 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17802 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17868 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17934 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:17976 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:18004 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:18067 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:18080 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:18093 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:20771 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:20827 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:21651 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:21949 [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:22729 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:23016 [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:23639 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:23859 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:24788 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:25478 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:26096 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:26407 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27528 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:27657 [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:27732 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:28461 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:29027 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30188 [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:30254 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30490 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30774 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30812 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:30850 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:31400 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32337 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32751 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32893 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:32906 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:33402 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:34808 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:34871 [error] - Allocation with malloc, memcpy doesn't release it.
- ./src/optional/python-bindings/gnucash_core.c:34934 [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 Thu, 24 Mar 2011 06:58:10 +0000, based on results by cppcheck 1.46