2025-11-22 22:27 ftp://ftp.de.debian.org/debian/pool/main/n/network-manager-sstp/network-manager-sstp_1.3.2.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 29 77 elapsed-time: 0.4 0.9 head-timing-info: old-timing-info: head results: network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:86:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SETTING_VPN_SETTING_NAME [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:130:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:146:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SETTING_SECRET_FLAG_NONE [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:196:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SETTING_SECRET_FLAG_NONE [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:251:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_KEY_NOSECRET [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:322:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:344:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_KEY_NOSECRET [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:373:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_KEY_PASSWORD [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:410:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_KEY_PASSWORD [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:432:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_unref_hashtable [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/auth-dialog/main.c:195:21: style: Variable 'status' is assigned a value that is never used. [unreadVariable] network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.h:24:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:56:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_free [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:129:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_VPN_EDITOR_PLUGIN_CAPABILITY_IMPORT [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:197:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_DBUS_SERVICE_SSTP [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:249:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:58:8: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:127:38: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'get_capabilities' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:234:34: note: You might need to cast the function pointer here network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:127:38: note: Parameter 'iface' can be declared as pointer to const network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:186:24: style: Parameter 'object' can be declared as pointer to const. However it seems that 'get_property' is a callback function, if 'object' is declared with const you might also need to cast function pointer(s). [constParameterCallback] network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:210:31: note: You might need to cast the function pointer here network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:186:24: note: Parameter 'object' can be declared as pointer to const network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:187:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:210:31: note: You might need to cast the function pointer here network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:187:42: note: Parameter 'pspec' can be declared as pointer to const network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor-plugin.c:226:36: style: Parameter 'plugin' can be declared as pointer to const [constParameterPointer] network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-shared-utils.c:877:1: error: There is an unknown macro here somewhere. Configuration is required. If NM_CACHED_QUARK_FCN is a macro then please configure it. [unknownMacro] network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-vpn-plugin-utils.c:33:64: debug: Function::addArguments found argument 'editor_factory' with varid 0. [varid0] network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-vpn-plugin-utils.c:47:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_free [valueFlowBailoutIncompleteVar] network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-glib.h:57:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] network-manager-sstp-release-1.3.2-1/src/nm-sstp-pppd-mppe.c:38:31: style: Parameter 'send_key' can be declared as pointer to const [constParameterPointer] network-manager-sstp-release-1.3.2-1/src/nm-sstp-pppd-mppe.c:52:31: style: Parameter 'recv_key' can be declared as pointer to const [constParameterPointer] network-manager-sstp-release-1.3.2-1/src/nm-sstp-pppd-compat.h:53:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PPP_VERSION( ... ) [syntaxError] network-manager-sstp-release-1.3.2-1/src/nm-sstp-service.c:351:13: error: There is an unknown macro here somewhere. Configuration is required. If _NM_UTILS_MACRO_FIRST is a macro then please configure it. [unknownMacro] diff: 2.18.0 network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:131:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_KEY_PROXY_PASSWORD [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:245:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:360:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_KEY_REQUIRE_MPPE [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:403:18: style: Redundant initialization for 'mschap_state'. The initialized value is overwritten before it is read. [redundantInitialization] network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:353:27: note: mschap_state is initialized network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:403:18: note: mschap_state is overwritten 2.18.0 network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:415:19: style: Redundant initialization for 'mschap2_state'. The initialized value is overwritten before it is read. [redundantInitialization] network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:354:28: note: mschap2_state is initialized network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:415:19: note: mschap2_state is overwritten 2.18.0 network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:427:15: style: Redundant initialization for 'eap_state'. The initialized value is overwritten before it is read. [redundantInitialization] network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:355:24: note: eap_state is initialized network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:427:15: note: eap_state is overwritten 2.18.0 network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:484:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_KEY_TLS_IDENTITY [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:627:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/advanced-dialog.c:858:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_KEY_CA_CERT [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:117:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_free [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:192:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:268:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_free [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:300:22: style: Variable 'is_x509' is assigned a value that is never used. [unreadVariable] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:301:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_free [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:325:22: style: Variable 'is_x509' is assigned a value that is never used. [unreadVariable] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:327:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_free [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:354:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_free [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:379:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_free [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:427:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_KEY_TLS_CA_CERT [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:487:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SETTING_SECRET_FLAG_NONE [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:556:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_CONTYPE_PASSWORD [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:637:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NM_SSTP_KEY_PROXY_PASSWORD [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:675:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_free [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:79:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gs_free [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:818:49: style: Parameter 'plugin' can be declared as pointer to const [constParameterPointer] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:835:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NMV_EDITOR_PLUGIN_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:910:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sstp_plugin_ui_widget_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.c:918:5: style: g_type_class_add_private has been deprecated since version 2.58 and should not be used in newly-written code. Use the G_ADD_PRIVATE() macro with the G_DEFINE_* family of macros to add instance private data to a type. [prohibitedg_type_class_add_privateCalled] head network-manager-sstp-release-1.3.2-1/properties/nm-sstp-editor.h:24:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-glib.h:166:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable glib_major_version [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-glib.h:467:39: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] head network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-glib.h:57:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-macros-internal.h:1069:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _str [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-macros-internal.h:126:27: style: Parameter 'pfd' can be declared as pointer to const [constParameterPointer] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-macros-internal.h:129:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-macros-internal.h:1370:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-macros-internal.h:141:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-macros-internal.h:150:30: style: Parameter 'p_saved_errno' can be declared as pointer to const [constParameterPointer] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-macros-internal.h:152:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-shared-utils.h:186:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _out_val [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-shared-utils.h:205:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _x [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-shared-utils.h:49:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in6_addr [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/nm-utils/nm-shared-utils.h:77:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _x [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/utils.c:103:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_E_SUCCESS [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/utils.c:141:44: style:inconclusive: Function 'nm_sstp_get_suject_name_pkcs12' argument 1 names different: declaration 'file' definition 'filename'. [funcArgNamesDifferent] network-manager-sstp-release-1.3.2-1/shared/utils.h:47:50: note: Function 'nm_sstp_get_suject_name_pkcs12' argument 1 names different: declaration 'file' definition 'filename'. network-manager-sstp-release-1.3.2-1/shared/utils.c:141:44: note: Function 'nm_sstp_get_suject_name_pkcs12' argument 1 names different: declaration 'file' definition 'filename'. 2.18.0 network-manager-sstp-release-1.3.2-1/shared/utils.c:149:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_E_SUCCESS [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/utils.c:226:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_E_SUCCESS [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/utils.c:273:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/utils.c:275:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/utils.c:323:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _str [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/utils.c:75:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_E_SUCCESS [valueFlowBailoutIncompleteVar] 2.18.0 network-manager-sstp-release-1.3.2-1/shared/utils.c:91:38: style:inconclusive: Function 'nm_sstp_get_subject_name' argument 1 names different: declaration 'file' definition 'filename'. [funcArgNamesDifferent] network-manager-sstp-release-1.3.2-1/shared/utils.h:42:44: note: Function 'nm_sstp_get_subject_name' argument 1 names different: declaration 'file' definition 'filename'. network-manager-sstp-release-1.3.2-1/shared/utils.c:91:38: note: Function 'nm_sstp_get_subject_name' argument 1 names different: declaration 'file' definition 'filename'. head network-manager-sstp-release-1.3.2-1/src/nm-sstp-pppd-compat.h:53:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PPP_VERSION( ... ) [syntaxError] 2.18.0 network-manager-sstp-release-1.3.2-1/src/nm-sstp-pppd-plugin.c:160:5: error: There is an unknown macro here somewhere. Configuration is required. If _NM_UTILS_MACRO_FIRST is a macro then please configure it. [unknownMacro] DONE