2026-05-04 08:46 ftp://ftp.de.debian.org/debian/pool/main/p/policykit-1-gnome/policykit-1-gnome_0.105.orig.tar.xz 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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 34 34 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: polkit-gnome-0.105/src/main.c:62:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:173:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:280:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_DIALOG [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:415:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILL [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:503:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable polkit_gnome_authentication_dialog_parent_class [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:528:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable polkit_gnome_authentication_dialog_parent_class [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:756:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:877:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_CENTER [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:1012:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:1066:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:174:16: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:551:10: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:559:15: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:614:10: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:647:18: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:742:3: 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] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:98:9: style: Variable 'indices' can be declared as pointer to const [constVariablePointer] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:342:64: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'polkit_gnome_authentication_dialog_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:746:33: note: You might need to cast the function pointer here polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:342:64: note: Parameter 'pspec' can be declared as pointer to const polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:386:62: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'polkit_gnome_authentication_dialog_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:745:33: note: You might need to cast the function pointer here polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:386:62: note: Parameter 'pspec' can be declared as pointer to const polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:388:36: style: Variable 'dialog' can be declared as pointer to const [constVariablePointer] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:424:32: style: Parameter 'url_label' can be declared as pointer to const. However it seems that 'action_id_activated' is a callback function, if 'url_label' is declared with const you might also need to cast function pointer(s). [constParameterCallback] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:700:3: note: You might need to cast the function pointer here polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:424:32: note: Parameter 'url_label' can be declared as pointer to const polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:424:52: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'action_id_activated' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:700:3: note: You might need to cast the function pointer here polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:424:52: note: Parameter 'user_data' can be declared as pointer to const polkit-gnome-0.105/src/polkitgnomeauthenticationdialog.c:859:57: style: Parameter 'details' can be declared as pointer to const [constParameterPointer] polkit-gnome-0.105/src/polkitgnomeauthenticator.c:112:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable polkit_gnome_authenticator_parent_class [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticator.c:136:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_RUN_LAST [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomeauthenticator.c:249:16: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] polkit-gnome-0.105/src/polkitgnomeauthenticator.c:78:60: style: Parameter 'authenticator' can be declared as pointer to const [constParameterPointer] polkit-gnome-0.105/src/polkitgnomeauthenticator.c:209:50: style: Parameter 'identities' can be declared as pointer to const [constParameterPointer] polkit-gnome-0.105/src/polkitgnomeauthenticator.c:508:66: style: Parameter 'authenticator' can be declared as pointer to const [constParameterPointer] polkit-gnome-0.105/src/polkitgnomelistener.c:71:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable polkit_gnome_listener_parent_class [valueFlowBailoutIncompleteVar] polkit-gnome-0.105/src/polkitgnomelistener.c:119:37: warning: Either the condition 'cancellable!=NULL' is redundant or there is possible null pointer dereference: cancellable. [nullPointerRedundantCheck] polkit-gnome-0.105/src/polkitgnomelistener.c:228:19: note: Assuming that condition 'cancellable!=NULL' is not redundant polkit-gnome-0.105/src/polkitgnomelistener.c:221:58: note: Calling function 'auth_data_new', 4th argument 'cancellable' value is 0 polkit-gnome-0.105/src/polkitgnomelistener.c:119:37: note: Null pointer dereference polkit-gnome-0.105/src/polkitgnomelistener.c:184:70: style:inconclusive: Function 'polkit_gnome_listener_initiate_authentication' argument 1 names different: declaration 'listener' definition 'agent_listener'. [funcArgNamesDifferent] polkit-gnome-0.105/src/polkitgnomelistener.c:46:82: note: Function 'polkit_gnome_listener_initiate_authentication' argument 1 names different: declaration 'listener' definition 'agent_listener'. polkit-gnome-0.105/src/polkitgnomelistener.c:184:70: note: Function 'polkit_gnome_listener_initiate_authentication' argument 1 names different: declaration 'listener' definition 'agent_listener'. polkit-gnome-0.105/src/polkitgnomelistener.c:64:50: style: Parameter 'listener' can be declared as pointer to const [constParameterPointer] polkit-gnome-0.105/src/polkitgnomelistener.c:119:37: warning: Null pointer dereference: cancellable [ctunullpointer] polkit-gnome-0.105/src/polkitgnomelistener.c:228:19: note: Assuming that condition 'cancellable!=NULL' is not redundant polkit-gnome-0.105/src/polkitgnomelistener.c:221:24: note: Calling function auth_data_new, 4th argument is null polkit-gnome-0.105/src/polkitgnomelistener.c:119:37: note: Dereferencing argument cancellable that is null diff: DONE