polkit-124-3.fc41
List of Defects
Error: COMPILER_WARNING: [#def1]
polkit-124/src/polkitbackend/polkitbackendactionpool.c:22: included_from: Included from here.
polkit-124/redhat-linux-build/config.h:48:9: warning: "_GNU_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
# 46| #define VERSION "124"
# 47|
# 48|-> #define _GNU_SOURCE
# 49|
Error: CLANG_WARNING: [#def2]
polkit-124/redhat-linux-build/polkit-1-scan.c:220:16: warning[deadcode.DeadStores]: Although the value stored to 'event_num' is used in the enclosing expression, the value is never actually read from 'event_num'
Error: CLANG_WARNING: [#def3]
polkit-124/redhat-linux-build/tmp-introspect6fif47_d/PolkitAgent-1.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
Error: CLANG_WARNING: [#def4]
polkit-124/redhat-linux-build/tmp-introspectewsx44zx/Polkit-1.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
Error: CLANG_WARNING: [#def5]
polkit-124/src/polkit/polkitauthority.c:393:18: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
# 391| {
# 392| g_warning ("polkit_authority_get: Error getting authority: %s",
# 393|-> error->message);
# 394| g_error_free (error);
# 395| }
Error: COMPILER_WARNING (CWE-477): [#def6]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘authority_get_async_cb’
polkit-124/src/polkit/polkitauthority.c:437:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
polkit-124/src/polkit/polkitauthority.h:30: included_from: Included from here.
polkit-124/src/polkit/polkitauthority.c:28: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 435| {
# 436| g_assert (error != NULL);
# 437|-> g_simple_async_result_set_from_error (simple, error);
# 438| g_error_free (error);
# 439| g_object_unref (source_object);
Error: COMPILER_WARNING (CWE-477): [#def7]
polkit-124/src/polkit/polkitauthority.c:443:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:72:21: note: declared here
# 441| else
# 442| {
# 443|-> g_simple_async_result_set_op_res_gpointer (simple,
# 444| source_object,
# 445| g_object_unref);
Error: COMPILER_WARNING (CWE-477): [#def8]
polkit-124/src/polkit/polkitauthority.c:447:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 445| g_object_unref);
# 446| }
# 447|-> g_simple_async_result_complete_in_idle (simple);
# 448| g_object_unref (simple);
# 449| }
Error: COMPILER_WARNING (CWE-477): [#def9]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_get_async’
polkit-124/src/polkit/polkitauthority.c:477:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 475| g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
# 476|
# 477|-> simple = g_simple_async_result_new (NULL,
# 478| callback,
# 479| user_data,
Error: COMPILER_WARNING (CWE-477): [#def10]
polkit-124/src/polkit/polkitauthority.c:487:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 485| {
# 486| g_assert (error != NULL);
# 487|-> g_simple_async_result_set_from_error (simple, error);
# 488| g_error_free (error);
# 489| g_simple_async_result_complete_in_idle (simple);
Error: COMPILER_WARNING (CWE-477): [#def11]
polkit-124/src/polkit/polkitauthority.c:489:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 487| g_simple_async_result_set_from_error (simple, error);
# 488| g_error_free (error);
# 489|-> g_simple_async_result_complete_in_idle (simple);
# 490| g_object_unref (simple);
# 491| }
Error: COMPILER_WARNING (CWE-477): [#def12]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_get_finish’
polkit-124/src/polkit/polkitauthority.c:525:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 523| simple = G_SIMPLE_ASYNC_RESULT (res);
# 524|
# 525|-> g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == polkit_authority_get_async);
# 526|
# 527| ret = NULL;
Error: COMPILER_WARNING (CWE-477): [#def13]
polkit-124/src/polkit/polkitauthority.c:529:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 527| ret = NULL;
# 528|
# 529|-> if (g_simple_async_result_propagate_error (simple, error))
# 530| goto out;
# 531|
Error: COMPILER_WARNING (CWE-477): [#def14]
polkit-124/src/polkit/polkitauthority.c:532:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 530| goto out;
# 531|
# 532|-> object = g_simple_async_result_get_op_res_gpointer (simple);
# 533| g_assert (object != NULL);
# 534| ret = g_object_ref (POLKIT_AUTHORITY (object));
Error: COMPILER_WARNING (CWE-477): [#def15]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘generic_async_cb’
polkit-124/src/polkit/polkitauthority.c:631:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:72:21: note: declared here
# 629| {
# 630| GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (user_data);
# 631|-> g_simple_async_result_set_op_res_gpointer (simple, g_object_ref (res), g_object_unref);
# 632| g_simple_async_result_complete (simple);
# 633| g_object_unref (simple);
Error: COMPILER_WARNING (CWE-477): [#def16]
polkit-124/src/polkit/polkitauthority.c:632:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 630| GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (user_data);
# 631| g_simple_async_result_set_op_res_gpointer (simple, g_object_ref (res), g_object_unref);
# 632|-> g_simple_async_result_complete (simple);
# 633| g_object_unref (simple);
# 634| }
Error: COMPILER_WARNING (CWE-477): [#def17]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_enumerate_actions’
polkit-124/src/polkit/polkitauthority.c:669:22: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 667| cancellable,
# 668| generic_async_cb,
# 669|-> g_simple_async_result_new (G_OBJECT (authority),
# 670| callback,
# 671| user_data,
Error: COMPILER_WARNING (CWE-477): [#def18]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_enumerate_actions_finish’
polkit-124/src/polkit/polkitauthority.c:706:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 704| ret = NULL;
# 705|
# 706|-> g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_enumerate_actions);
# 707| _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 708|
Error: COMPILER_WARNING (CWE-477): [#def19]
polkit-124/src/polkit/polkitauthority.c:707:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 705|
# 706| g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_enumerate_actions);
# 707|-> _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 708|
# 709| value = g_dbus_proxy_call_finish (authority->proxy, _res, error);
Error: COMPILER_WARNING (CWE-477): [#def20]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘check_authorization_cb’
polkit-124/src/polkit/polkitauthority.c:821:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 819| NULL);
# 820| }
# 821|-> g_simple_async_result_set_from_error (data->simple, error);
# 822| g_error_free (error);
# 823| }
Error: COMPILER_WARNING (CWE-477): [#def21]
polkit-124/src/polkit/polkitauthority.c:832:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:72:21: note: declared here
# 830| g_variant_unref (result_value);
# 831| g_variant_unref (value);
# 832|-> g_simple_async_result_set_op_res_gpointer (data->simple, result, g_object_unref);
# 833| }
# 834|
Error: COMPILER_WARNING (CWE-477): [#def22]
polkit-124/src/polkit/polkitauthority.c:835:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 833| }
# 834|
# 835|-> g_simple_async_result_complete (data->simple);
# 836|
# 837| g_object_unref (data->authority);
Error: COMPILER_WARNING (CWE-477): [#def23]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_check_authorization’
polkit-124/src/polkit/polkitauthority.c:899:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 897| data = g_new0 (CheckAuthData, 1);
# 898| data->authority = g_object_ref (authority);
# 899|-> data->simple = g_simple_async_result_new (G_OBJECT (authority),
# 900| callback,
# 901| user_data,
Error: COMPILER_WARNING (CWE-477): [#def24]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_check_authorization_finish’
polkit-124/src/polkit/polkitauthority.c:947:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 945| ret = NULL;
# 946|
# 947|-> if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (res), error))
# 948| goto out;
# 949|
Error: COMPILER_WARNING (CWE-477): [#def25]
polkit-124/src/polkit/polkitauthority.c:950:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 948| goto out;
# 949|
# 950|-> ret = g_object_ref (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 951|
# 952| out:
Error: COMPILER_WARNING (CWE-477): [#def26]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_register_authentication_agent’
polkit-124/src/polkit/polkitauthority.c:1068:22: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 1066| cancellable,
# 1067| generic_async_cb,
# 1068|-> g_simple_async_result_new (G_OBJECT (authority),
# 1069| callback,
# 1070| user_data,
Error: COMPILER_WARNING (CWE-477): [#def27]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_register_authentication_agent_finish’
polkit-124/src/polkit/polkitauthority.c:1099:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 1097| ret = FALSE;
# 1098|
# 1099|-> g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_register_authentication_agent);
# 1100| _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1101|
Error: COMPILER_WARNING (CWE-477): [#def28]
polkit-124/src/polkit/polkitauthority.c:1100:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 1098|
# 1099| g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_register_authentication_agent);
# 1100|-> _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1101|
# 1102| value = g_dbus_proxy_call_finish (authority->proxy, _res, error);
Error: COMPILER_WARNING (CWE-477): [#def29]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_register_authentication_agent_with_options’
polkit-124/src/polkit/polkitauthority.c:1221:26: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 1219| cancellable,
# 1220| generic_async_cb,
# 1221|-> g_simple_async_result_new (G_OBJECT (authority),
# 1222| callback,
# 1223| user_data,
Error: COMPILER_WARNING (CWE-477): [#def30]
polkit-124/src/polkit/polkitauthority.c:1238:26: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 1236| cancellable,
# 1237| generic_async_cb,
# 1238|-> g_simple_async_result_new (G_OBJECT (authority),
# 1239| callback,
# 1240| user_data,
Error: COMPILER_WARNING (CWE-477): [#def31]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_register_authentication_agent_with_options_finish’
polkit-124/src/polkit/polkitauthority.c:1271:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 1269| ret = FALSE;
# 1270|
# 1271|-> g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_register_authentication_agent_with_options);
# 1272| _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1273|
Error: COMPILER_WARNING (CWE-477): [#def32]
polkit-124/src/polkit/polkitauthority.c:1272:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 1270|
# 1271| g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_register_authentication_agent_with_options);
# 1272|-> _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1273|
# 1274| value = g_dbus_proxy_call_finish (authority->proxy, _res, error);
Error: COMPILER_WARNING (CWE-477): [#def33]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_unregister_authentication_agent’
polkit-124/src/polkit/polkitauthority.c:1378:22: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 1376| cancellable,
# 1377| generic_async_cb,
# 1378|-> g_simple_async_result_new (G_OBJECT (authority),
# 1379| callback,
# 1380| user_data,
Error: COMPILER_WARNING (CWE-477): [#def34]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_unregister_authentication_agent_finish’
polkit-124/src/polkit/polkitauthority.c:1409:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 1407| ret = FALSE;
# 1408|
# 1409|-> g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_unregister_authentication_agent);
# 1410| _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1411|
Error: COMPILER_WARNING (CWE-477): [#def35]
polkit-124/src/polkit/polkitauthority.c:1410:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 1408|
# 1409| g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_unregister_authentication_agent);
# 1410|-> _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1411|
# 1412| value = g_dbus_proxy_call_finish (authority->proxy, _res, error);
Error: COMPILER_WARNING (CWE-477): [#def36]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_authentication_agent_response’
polkit-124/src/polkit/polkitauthority.c:1519:22: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 1517| cancellable,
# 1518| generic_async_cb,
# 1519|-> g_simple_async_result_new (G_OBJECT (authority),
# 1520| callback,
# 1521| user_data,
Error: COMPILER_WARNING (CWE-477): [#def37]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_authentication_agent_response_finish’
polkit-124/src/polkit/polkitauthority.c:1550:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 1548| ret = FALSE;
# 1549|
# 1550|-> g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_authentication_agent_response);
# 1551| _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1552|
Error: COMPILER_WARNING (CWE-477): [#def38]
polkit-124/src/polkit/polkitauthority.c:1551:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 1549|
# 1550| g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_authentication_agent_response);
# 1551|-> _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1552|
# 1553| value = g_dbus_proxy_call_finish (authority->proxy, _res, error);
Error: COMPILER_WARNING (CWE-477): [#def39]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_enumerate_temporary_authorizations’
polkit-124/src/polkit/polkitauthority.c:1645:22: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 1643| cancellable,
# 1644| generic_async_cb,
# 1645|-> g_simple_async_result_new (G_OBJECT (authority),
# 1646| callback,
# 1647| user_data,
Error: COMPILER_WARNING (CWE-477): [#def40]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_enumerate_temporary_authorizations_finish’
polkit-124/src/polkit/polkitauthority.c:1682:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 1680| ret = NULL;
# 1681|
# 1682|-> g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_enumerate_temporary_authorizations);
# 1683| _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1684|
Error: COMPILER_WARNING (CWE-477): [#def41]
polkit-124/src/polkit/polkitauthority.c:1683:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 1681|
# 1682| g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_enumerate_temporary_authorizations);
# 1683|-> _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1684|
# 1685| value = g_dbus_proxy_call_finish (authority->proxy, _res, error);
Error: COMPILER_WARNING (CWE-477): [#def42]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_revoke_temporary_authorizations’
polkit-124/src/polkit/polkitauthority.c:1794:22: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 1792| cancellable,
# 1793| generic_async_cb,
# 1794|-> g_simple_async_result_new (G_OBJECT (authority),
# 1795| callback,
# 1796| user_data,
Error: COMPILER_WARNING (CWE-477): [#def43]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_revoke_temporary_authorizations_finish’
polkit-124/src/polkit/polkitauthority.c:1825:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 1823| ret = FALSE;
# 1824|
# 1825|-> g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_revoke_temporary_authorizations);
# 1826| _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1827|
Error: COMPILER_WARNING (CWE-477): [#def44]
polkit-124/src/polkit/polkitauthority.c:1826:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 1824|
# 1825| g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_revoke_temporary_authorizations);
# 1826|-> _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1827|
# 1828| value = g_dbus_proxy_call_finish (authority->proxy, _res, error);
Error: COMPILER_WARNING (CWE-477): [#def45]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_revoke_temporary_authorization_by_id’
polkit-124/src/polkit/polkitauthority.c:1914:22: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 1912| cancellable,
# 1913| generic_async_cb,
# 1914|-> g_simple_async_result_new (G_OBJECT (authority),
# 1915| callback,
# 1916| user_data,
Error: COMPILER_WARNING (CWE-477): [#def46]
polkit-124/src/polkit/polkitauthority.c: scope_hint: In function ‘polkit_authority_revoke_temporary_authorization_by_id_finish’
polkit-124/src/polkit/polkitauthority.c:1945:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 1943| ret = FALSE;
# 1944|
# 1945|-> g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_revoke_temporary_authorization_by_id);
# 1946| _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1947|
Error: COMPILER_WARNING (CWE-477): [#def47]
polkit-124/src/polkit/polkitauthority.c:1946:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 1944|
# 1945| g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_authority_revoke_temporary_authorization_by_id);
# 1946|-> _res = G_ASYNC_RESULT (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (res)));
# 1947|
# 1948| value = g_dbus_proxy_call_finish (authority->proxy, _res, error);
Error: CLANG_WARNING: [#def48]
polkit-124/src/polkit/polkitimplicitauthorization.c:39:3: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 37|
# 38| ret = TRUE;
# 39|-> result = POLKIT_IMPLICIT_AUTHORIZATION_NOT_AUTHORIZED;
# 40|
# 41| if (strcmp (string, "no") == 0)
Error: CLANG_WARNING: [#def49]
polkit-124/src/polkit/polkitimplicitauthorization.c:83:3: warning[deadcode.DeadStores]: Value stored to 's' is never read
# 81| const gchar *s;
# 82|
# 83|-> s = "(unknown)";
# 84|
# 85| switch (implicit_authorization)
Error: COMPILER_WARNING (CWE-477): [#def50]
polkit-124/src/polkit/polkitpermission.c: scope_hint: In function ‘acquire_cb’
polkit-124/src/polkit/polkitpermission.c:558:15: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
polkit-124/src/polkit/polkitpermission.c:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here
# 556| if (polkit_authorization_result_get_dismissed (result))
# 557| {
# 558|-> g_simple_async_result_set_error (data->simple,
# 559| G_IO_ERROR,
# 560| G_IO_ERROR_CANCELLED,
Error: COMPILER_WARNING (CWE-477): [#def51]
polkit-124/src/polkit/polkitpermission.c:566:15: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here
# 564| else
# 565| {
# 566|-> g_simple_async_result_set_error (data->simple,
# 567| POLKIT_ERROR,
# 568| POLKIT_ERROR_FAILED,
Error: COMPILER_WARNING (CWE-477): [#def52]
polkit-124/src/polkit/polkitpermission.c:577:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 575| else
# 576| {
# 577|-> g_simple_async_result_set_from_error (data->simple, error);
# 578| g_error_free (error);
# 579| }
Error: COMPILER_WARNING (CWE-477): [#def53]
polkit-124/src/polkit/polkitpermission.c:583:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 581| * due to how PolkitAuthority works
# 582| */
# 583|-> g_simple_async_result_complete (data->simple);
# 584| acquire_data_free (data);
# 585| }
Error: COMPILER_WARNING (CWE-477): [#def54]
polkit-124/src/polkit/polkitpermission.c: scope_hint: In function ‘acquire_async’
polkit-124/src/polkit/polkitpermission.c:598:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 596| data = g_new0 (AcquireData, 1);
# 597| data->permission = permission;
# 598|-> data->simple = g_simple_async_result_new (G_OBJECT (permission),
# 599| callback,
# 600| user_data,
Error: COMPILER_WARNING (CWE-477): [#def55]
polkit-124/src/polkit/polkitpermission.c: scope_hint: In function ‘acquire_finish’
polkit-124/src/polkit/polkitpermission.c:621:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 619|
# 620| simple = G_SIMPLE_ASYNC_RESULT (result);
# 621|-> g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == acquire_async);
# 622|
# 623| if (g_simple_async_result_propagate_error (simple, error))
Error: COMPILER_WARNING (CWE-477): [#def56]
polkit-124/src/polkit/polkitpermission.c:623:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 621| g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == acquire_async);
# 622|
# 623|-> if (g_simple_async_result_propagate_error (simple, error))
# 624| return FALSE;
# 625|
Error: COMPILER_WARNING (CWE-477): [#def57]
polkit-124/src/polkit/polkitpermission.c: scope_hint: In function ‘release_check_cb’
polkit-124/src/polkit/polkitpermission.c:710:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 708| "Error checking authorization for action id %s after releasing the permission: ",
# 709| data->permission->action_id);
# 710|-> g_simple_async_result_set_from_error (data->simple, error);
# 711| g_error_free (error);
# 712| }
Error: COMPILER_WARNING (CWE-477): [#def58]
polkit-124/src/polkit/polkitpermission.c:721:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 719| * due to how PolkitAuthority works
# 720| */
# 721|-> g_simple_async_result_complete (data->simple);
# 722| release_data_free (data);
# 723| }
Error: CLANG_WARNING: [#def59]
polkit-124/src/polkit/polkitpermission.c:734:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 732| gboolean ret;
# 733|
# 734|-> ret = FALSE;
# 735|
# 736| error = NULL;
Error: COMPILER_WARNING (CWE-477): [#def60]
polkit-124/src/polkit/polkitpermission.c: scope_hint: In function ‘release_cb’
polkit-124/src/polkit/polkitpermission.c:742:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 740| if (!ret)
# 741| {
# 742|-> g_simple_async_result_set_from_error (data->simple, error);
# 743| g_error_free (error);
# 744| /* don't complete in idle since we're already completing in idle
Error: COMPILER_WARNING (CWE-477): [#def61]
polkit-124/src/polkit/polkitpermission.c:747:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 745| * due to how PolkitAuthority works
# 746| */
# 747|-> g_simple_async_result_complete (data->simple);
# 748| release_data_free (data);
# 749| }
Error: COMPILER_WARNING (CWE-477): [#def62]
polkit-124/src/polkit/polkitpermission.c: scope_hint: In function ‘release_async’
polkit-124/src/polkit/polkitpermission.c:778:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 776| data = g_new0 (ReleaseData, 1);
# 777| data->permission = permission;
# 778|-> data->simple = g_simple_async_result_new (G_OBJECT (permission),
# 779| callback,
# 780| user_data,
Error: COMPILER_WARNING (CWE-477): [#def63]
polkit-124/src/polkit/polkitpermission.c:785:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here
# 783| if (permission->tmp_authz_id == NULL)
# 784| {
# 785|-> g_simple_async_result_set_error (data->simple,
# 786| POLKIT_ERROR,
# 787| POLKIT_ERROR_FAILED,
Error: COMPILER_WARNING (CWE-477): [#def64]
polkit-124/src/polkit/polkitpermission.c:790:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 788| "Cannot release permission: no temporary authorization for action-id %s exist",
# 789| permission->action_id);
# 790|-> g_simple_async_result_complete_in_idle (data->simple);
# 791| release_data_free (data);
# 792| goto out;
Error: COMPILER_WARNING (CWE-477): [#def65]
polkit-124/src/polkit/polkitpermission.c: scope_hint: In function ‘release_finish’
polkit-124/src/polkit/polkitpermission.c:812:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 810|
# 811| simple = G_SIMPLE_ASYNC_RESULT (result);
# 812|-> g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == release_async);
# 813|
# 814| if (g_simple_async_result_propagate_error (simple, error))
Error: COMPILER_WARNING (CWE-477): [#def66]
polkit-124/src/polkit/polkitpermission.c:814:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 812| g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == release_async);
# 813|
# 814|-> if (g_simple_async_result_propagate_error (simple, error))
# 815| return FALSE;
# 816|
Error: COMPILER_WARNING (CWE-477): [#def67]
polkit-124/src/polkit/polkitsystembusname.c: scope_hint: In function ‘exists_in_thread_func’
polkit-124/src/polkit/polkitsystembusname.c:289:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
/usr/include/glib-2.0/gio/gunixfdlist.h:26: included_from: Included from here.
polkit-124/src/polkit/polkitsystembusname.c:27: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 287| &error))
# 288| {
# 289|-> g_simple_async_result_set_from_error (res, error);
# 290| g_error_free (error);
# 291| }
Error: COMPILER_WARNING (CWE-477): [#def68]
polkit-124/src/polkit/polkitsystembusname.c: scope_hint: In function ‘polkit_system_bus_name_exists’
polkit-124/src/polkit/polkitsystembusname.c:304:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 302| g_return_if_fail (POLKIT_IS_SYSTEM_BUS_NAME (subject));
# 303|
# 304|-> simple = g_simple_async_result_new (G_OBJECT (subject),
# 305| callback,
# 306| user_data,
Error: COMPILER_WARNING (CWE-477): [#def69]
polkit-124/src/polkit/polkitsystembusname.c:308:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_run_in_thread’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:105:21: note: declared here
# 306| user_data,
# 307| polkit_system_bus_name_exists);
# 308|-> g_simple_async_result_run_in_thread (simple,
# 309| exists_in_thread_func,
# 310| G_PRIORITY_DEFAULT,
Error: COMPILER_WARNING (CWE-477): [#def70]
polkit-124/src/polkit/polkitsystembusname.c: scope_hint: In function ‘polkit_system_bus_name_exists_finish’
polkit-124/src/polkit/polkitsystembusname.c:323:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 321| gboolean ret;
# 322|
# 323|-> g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == polkit_system_bus_name_exists);
# 324|
# 325| ret = FALSE;
Error: COMPILER_WARNING (CWE-477): [#def71]
polkit-124/src/polkit/polkitsystembusname.c:327:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 325| ret = FALSE;
# 326|
# 327|-> if (g_simple_async_result_propagate_error (simple, error))
# 328| goto out;
# 329|
Error: COMPILER_WARNING (CWE-477): [#def72]
polkit-124/src/polkit/polkitsystembusname.c:330:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gboolean’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:88:21: note: declared here
# 328| goto out;
# 329|
# 330|-> ret = g_simple_async_result_get_op_res_gboolean (simple);
# 331|
# 332| out:
Error: COMPILER_WARNING (CWE-477): [#def73]
polkit-124/src/polkit/polkitunixprocess.c: scope_hint: In function ‘polkit_unix_process_exists’
polkit-124/src/polkit/polkitunixprocess.c:920:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
polkit-124/src/polkit/polkitunixprocess.h:32: included_from: Included from here.
polkit-124/src/polkit/polkitunixprocess.c:47: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 918| {
# 919| GSimpleAsyncResult *simple;
# 920|-> simple = g_simple_async_result_new (G_OBJECT (subject),
# 921| callback,
# 922| user_data,
Error: COMPILER_WARNING (CWE-477): [#def74]
polkit-124/src/polkit/polkitunixprocess.c:924:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 922| user_data,
# 923| polkit_unix_process_exists);
# 924|-> g_simple_async_result_complete (simple);
# 925| g_object_unref (simple);
# 926| }
Error: COMPILER_WARNING (CWE-477): [#def75]
polkit-124/src/polkit/polkitunixprocess.c: scope_hint: In function ‘polkit_unix_process_exists_finish’
polkit-124/src/polkit/polkitunixprocess.c:935:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 933| GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (res);
# 934|
# 935|-> g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == polkit_unix_process_exists);
# 936|
# 937| return polkit_unix_process_exists_sync (subject,
Error: COMPILER_WARNING (CWE-477): [#def76]
polkit-124/src/polkit/polkitunixsession-systemd.c: scope_hint: In function ‘exists_in_thread_func’
polkit-124/src/polkit/polkitunixsession-systemd.c:388:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
polkit-124/src/polkit/polkitunixsession.h:30: included_from: Included from here.
polkit-124/src/polkit/polkitunixsession-systemd.c:28: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 386| &error))
# 387| {
# 388|-> g_simple_async_result_set_from_error (res, error);
# 389| g_error_free (error);
# 390| }
Error: COMPILER_WARNING (CWE-477): [#def77]
polkit-124/src/polkit/polkitunixsession-systemd.c: scope_hint: In function ‘polkit_unix_session_exists’
polkit-124/src/polkit/polkitunixsession-systemd.c:403:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 401| g_return_if_fail (POLKIT_IS_UNIX_SESSION (subject));
# 402|
# 403|-> simple = g_simple_async_result_new (G_OBJECT (subject),
# 404| callback,
# 405| user_data,
Error: COMPILER_WARNING (CWE-477): [#def78]
polkit-124/src/polkit/polkitunixsession-systemd.c:407:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_run_in_thread’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:105:21: note: declared here
# 405| user_data,
# 406| polkit_unix_session_exists);
# 407|-> g_simple_async_result_run_in_thread (simple,
# 408| exists_in_thread_func,
# 409| G_PRIORITY_DEFAULT,
Error: COMPILER_WARNING (CWE-477): [#def79]
polkit-124/src/polkit/polkitunixsession-systemd.c: scope_hint: In function ‘polkit_unix_session_exists_finish’
polkit-124/src/polkit/polkitunixsession-systemd.c:422:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 420| gboolean ret;
# 421|
# 422|-> g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == polkit_unix_session_exists);
# 423|
# 424| ret = FALSE;
Error: COMPILER_WARNING (CWE-477): [#def80]
polkit-124/src/polkit/polkitunixsession-systemd.c:426:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 424| ret = FALSE;
# 425|
# 426|-> if (g_simple_async_result_propagate_error (simple, error))
# 427| goto out;
# 428|
Error: COMPILER_WARNING (CWE-477): [#def81]
polkit-124/src/polkit/polkitunixsession-systemd.c:429:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gboolean’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:88:21: note: declared here
# 427| goto out;
# 428|
# 429|-> ret = g_simple_async_result_get_op_res_gboolean (simple);
# 430|
# 431| out:
Error: GCC_ANALYZER_WARNING (CWE-688): [#def82]
polkit-124/src/polkitagent/polkitagenthelper-pam.c: scope_hint: In function ‘send_to_helper’
polkit-124/src/polkitagent/polkitagenthelper-pam.c:47:10: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
polkit-124/src/polkit/polkittypes.h:25: included_from: Included from here.
polkit-124/src/polkit/polkit.h:27: included_from: Included from here.
polkit-124/src/polkitagent/polkitagenthelperprivate.h:25: included_from: Included from here.
polkit-124/src/polkitagent/polkitagenthelper-pam.c:23: included_from: Included from here.
polkit-124/src/polkitagent/polkitagenthelper-pam.c:46:10: note: in expansion of macro ‘g_strdup’
polkit-124/src/polkitagent/polkitagenthelper-pam.c: scope_hint: In function ‘send_to_helper’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 45|
# 46| tmp2 = g_strdup(str2);
# 47|-> len2 = strlen(tmp2);
# 48| #ifdef PAH_DEBUG
# 49| fprintf (stderr, "polkit-agent-helper-1: writing `%s ' to stdout\n", str1);
Error: COMPILER_WARNING (CWE-477): [#def83]
polkit-124/src/polkitagent/polkitagenttextlistener.c: scope_hint: In function ‘on_completed’
polkit-124/src/polkitagent/polkitagenttextlistener.c:312:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
# 312 | g_simple_async_result_complete_in_idle (listener->simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
polkit-124/src/polkit/polkitactiondescription.h:30: included_from: Included from here.
polkit-124/src/polkit/polkitprivate.h:26: included_from: Included from here.
polkit-124/src/polkitagent/polkitagenttextlistener.c:34: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 310| fflush (listener->tty);
# 311|
# 312|-> g_simple_async_result_complete_in_idle (listener->simple);
# 313|
# 314| g_object_unref (listener->simple);
Error: COMPILER_WARNING (CWE-477): [#def84]
polkit-124/src/polkitagent/polkitagenttextlistener.c: scope_hint: In function ‘polkit_agent_text_listener_initiate_authentication’
polkit-124/src/polkitagent/polkitagenttextlistener.c:563:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
# 563 | simple = g_simple_async_result_new (G_OBJECT (listener),
# | ^~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 48 | GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
# 561| PolkitIdentity *identity;
# 562|
# 563|-> simple = g_simple_async_result_new (G_OBJECT (listener),
# 564| callback,
# 565| user_data,
Error: COMPILER_WARNING (CWE-477): [#def85]
polkit-124/src/polkitagent/polkitagenttextlistener.c:569:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated
# 569 | g_simple_async_result_set_error (simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here
# 119 | void g_simple_async_result_set_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 567| if (listener->active_session != NULL)
# 568| {
# 569|-> g_simple_async_result_set_error (simple,
# 570| POLKIT_ERROR,
# 571| POLKIT_ERROR_FAILED,
Error: COMPILER_WARNING (CWE-477): [#def86]
polkit-124/src/polkitagent/polkitagenttextlistener.c:573:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
# 573 | g_simple_async_result_complete_in_idle (simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 571| POLKIT_ERROR_FAILED,
# 572| "An authentication session is already underway.");
# 573|-> g_simple_async_result_complete_in_idle (simple);
# 574| g_object_unref (simple);
# 575| goto out;
Error: COMPILER_WARNING (CWE-477): [#def87]
polkit-124/src/polkitagent/polkitagenttextlistener.c:605:11: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated
# 605 | g_simple_async_result_set_error (simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here
# 119 | void g_simple_async_result_set_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 603| fprintf (listener->tty, "\x1B[0m");
# 604| fflush (listener->tty);
# 605|-> g_simple_async_result_set_error (simple,
# 606| POLKIT_ERROR,
# 607| POLKIT_ERROR_FAILED,
Error: COMPILER_WARNING (CWE-477): [#def88]
polkit-124/src/polkitagent/polkitagenttextlistener.c:609:11: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
# 609 | g_simple_async_result_complete_in_idle (simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 607| POLKIT_ERROR_FAILED,
# 608| "Authentication was canceled.");
# 609|-> g_simple_async_result_complete_in_idle (simple);
# 610| g_object_unref (simple);
# 611| goto out;
Error: COMPILER_WARNING (CWE-477): [#def89]
polkit-124/src/polkitagent/polkitagenttextlistener.c: scope_hint: In function ‘polkit_agent_text_listener_initiate_authentication_finish’
polkit-124/src/polkitagent/polkitagenttextlistener.c:663:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
# 663 | g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) ==
# | ^~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 96 | gpointer g_simple_async_result_get_source_tag (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 661| gboolean ret;
# 662|
# 663|-> g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) ==
# 664| polkit_agent_text_listener_initiate_authentication);
# 665|
Error: COMPILER_WARNING (CWE-477): [#def90]
polkit-124/src/polkitagent/polkitagenttextlistener.c:668:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
# 668 | if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (res), error))
# | ^~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 116 | gboolean g_simple_async_result_propagate_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 666| ret = FALSE;
# 667|
# 668|-> if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (res), error))
# 669| goto out;
# 670|
Error: COMPILER_WARNING: [#def91]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘polkit_backend_action_pool_init’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:131:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 129| PolkitBackendActionPoolPrivate *priv;
# 130|
# 131|-> priv = POLKIT_BACKEND_ACTION_POOL_GET_PRIVATE (pool);
# 132|
# 133| priv->parsed_actions = g_hash_table_new_full (g_str_hash,
Error: COMPILER_WARNING: [#def92]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘polkit_backend_action_pool_finalize’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:151:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 149|
# 150| pool = POLKIT_BACKEND_ACTION_POOL (object);
# 151|-> priv = POLKIT_BACKEND_ACTION_POOL_GET_PRIVATE (pool);
# 152|
# 153| if (priv->directory != NULL)
Error: COMPILER_WARNING: [#def93]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘polkit_backend_action_pool_get_property’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:178:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 176|
# 177| pool = POLKIT_BACKEND_ACTION_POOL (object);
# 178|-> priv = POLKIT_BACKEND_ACTION_POOL_GET_PRIVATE (pool);
# 179|
# 180| switch (prop_id)
Error: COMPILER_WARNING: [#def94]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘dir_monitor_changed’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:203:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 201|
# 202| pool = POLKIT_BACKEND_ACTION_POOL (user_data);
# 203|-> priv = POLKIT_BACKEND_ACTION_POOL_GET_PRIVATE (pool);
# 204|
# 205| /* TODO: maybe rate-limit so storms of events are collapsed into one with a 500ms resolution?
Error: COMPILER_WARNING: [#def95]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘polkit_backend_action_pool_set_property’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:251:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 249|
# 250| pool = POLKIT_BACKEND_ACTION_POOL (object);
# 251|-> priv = POLKIT_BACKEND_ACTION_POOL_GET_PRIVATE (pool);
# 252|
# 253| switch (prop_id)
Error: COMPILER_WARNING (CWE-477): [#def96]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘polkit_backend_action_pool_class_init’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:292:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
polkit-124/src/polkit/polkittypes.h:25: included_from: Included from here.
polkit-124/src/polkit/polkit.h:27: included_from: Included from here.
polkit-124/src/polkitbackend/polkitbackendactionpool.c:28: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
# 290| gobject_class->finalize = polkit_backend_action_pool_finalize;
# 291|
# 292|-> g_type_class_add_private (klass, sizeof (PolkitBackendActionPoolPrivate));
# 293|
# 294| /**
Error: COMPILER_WARNING: [#def97]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘polkit_backend_action_pool_get_action’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:372:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 370| g_return_val_if_fail (POLKIT_BACKEND_IS_ACTION_POOL (pool), NULL);
# 371|
# 372|-> priv = POLKIT_BACKEND_ACTION_POOL_GET_PRIVATE (pool);
# 373|
# 374| /* TODO: just compute the name of the expected file and ensure it's parsed */
Error: COMPILER_WARNING: [#def98]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘polkit_backend_action_pool_get_all_actions’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:430:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 428| g_return_val_if_fail (POLKIT_BACKEND_IS_ACTION_POOL (pool), NULL);
# 429|
# 430|-> priv = POLKIT_BACKEND_ACTION_POOL_GET_PRIVATE (pool);
# 431|
# 432| ensure_all_files (pool);
Error: COMPILER_WARNING: [#def99]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘ensure_file’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:465:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 463| gchar *uri;
# 464|
# 465|-> priv = POLKIT_BACKEND_ACTION_POOL_GET_PRIVATE (pool);
# 466|
# 467| uri = g_file_get_uri (file);
Error: COMPILER_WARNING: [#def100]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘ensure_all_files’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:511:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 509| GError *error;
# 510|
# 511|-> priv = POLKIT_BACKEND_ACTION_POOL_GET_PRIVATE (pool);
# 512|
# 513| e = NULL;
Error: COMPILER_WARNING: [#def101]
polkit-124/src/polkitbackend/polkitbackendactionpool.c: scope_hint: In function ‘_end’
polkit-124/src/polkitbackend/polkitbackendactionpool.c:974:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 972| PolkitBackendActionPoolPrivate *priv;
# 973|
# 974|-> priv = POLKIT_BACKEND_ACTION_POOL_GET_PRIVATE (pd->pool);
# 975|
# 976| vendor = pd->vendor;
Error: COMPILER_WARNING (CWE-477): [#def102]
polkit-124/src/polkitbackend/polkitbackendauthority.c: scope_hint: In function ‘polkit_backend_authority_check_authorization’
polkit-124/src/polkitbackend/polkitbackendauthority.c:216:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new_error’ is deprecated: Use 'g_task_new' instead
# 216 | simple = g_simple_async_result_new_error (G_OBJECT (authority),
# | ^~~~~~
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
polkit-124/src/polkit/polkitactiondescription.h:30: included_from: Included from here.
polkit-124/src/polkit/polkit.h:30: included_from: Included from here.
polkit-124/src/polkitbackend/polkitbackendauthority.c:29: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:53:21: note: declared here
# 53 | GSimpleAsyncResult *g_simple_async_result_new_error (GObject *source_object,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 214| g_warning ("check_authorization is not implemented (it is not optional)");
# 215|
# 216|-> simple = g_simple_async_result_new_error (G_OBJECT (authority),
# 217| callback,
# 218| user_data,
Error: COMPILER_WARNING (CWE-477): [#def103]
polkit-124/src/polkitbackend/polkitbackendauthority.c:222:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
# 222 | g_simple_async_result_complete (simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 220| POLKIT_ERROR_NOT_SUPPORTED,
# 221| "Operation not supported (bug in backend)");
# 222|-> g_simple_async_result_complete (simple);
# 223| g_object_unref (simple);
# 224| }
Error: COMPILER_WARNING (CWE-477): [#def104]
polkit-124/src/polkitbackend/polkitbackendauthority.c: scope_hint: In function ‘polkit_backend_authority_check_authorization_finish’
polkit-124/src/polkitbackend/polkitbackendauthority.c:253:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
# 253 | g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (res), error);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 116 | gboolean g_simple_async_result_propagate_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 251| {
# 252| g_warning ("check_authorization_finish is not implemented (it is not optional)");
# 253|-> g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (res), error);
# 254| return NULL;
# 255| }
Error: COMPILER_WARNING (CWE-477): [#def105]
polkit-124/src/polkitbackend/polkitbackendauthority.c: scope_hint: In function ‘polkit_backend_authority_log’
polkit-124/src/polkitbackend/polkitbackendauthority.c:1522:3: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
# 1522 | GTimeVal now;
# | ^~~~~~~~
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
polkit-124/src/polkit/polkittypes.h:25: included_from: Included from here.
polkit-124/src/polkit/polkit.h:27: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
# 580 | struct _GTimeVal
# | ^~~~~~~~~
# 1520| ...)
# 1521| {
# 1522|-> GTimeVal now;
# 1523| time_t now_time;
# 1524| struct tm *now_tm;
Error: COMPILER_WARNING (CWE-477): [#def106]
polkit-124/src/polkitbackend/polkitbackendauthority.c:1537:3: warning[-Wdeprecated-declarations]: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead
# 1537 | g_get_current_time (&now);
# | ^~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/giochannel.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gmain.h:728:8: note: declared here
# 728 | void g_get_current_time (GTimeVal *result);
# | ^~~~~~~~~~~~~~~~~~
# 1535| syslog (LOG_NOTICE, "%s", message);
# 1536|
# 1537|-> g_get_current_time (&now);
# 1538| now_time = (time_t) now.tv_sec;
# 1539| now_tm = localtime (&now_time);
Error: COMPILER_WARNING (CWE-477): [#def107]
polkit-124/src/polkitbackend/polkitbackendcommon.c: scope_hint: In function ‘utils_on_cancelled’
polkit-124/src/polkitbackend/polkitbackendcommon.c:141:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated
# 141 | g_simple_async_result_take_error (data->simple, error);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
/usr/include/glib-2.0/gio/gunixfdlist.h:26: included_from: Included from here.
polkit-124/src/polkitbackend/polkitbackendcommon.h:40: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:113:21: note: declared here
# 113 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 139| error = NULL;
# 140| g_warn_if_fail (g_cancellable_set_error_if_cancelled (cancellable, &error));
# 141|-> g_simple_async_result_take_error (data->simple, error);
# 142| g_simple_async_result_complete_in_idle (data->simple);
# 143| g_object_unref (data->simple);
Error: COMPILER_WARNING (CWE-477): [#def108]
polkit-124/src/polkitbackend/polkitbackendcommon.c:142:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
# 142 | g_simple_async_result_complete_in_idle (data->simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 140| g_warn_if_fail (g_cancellable_set_error_if_cancelled (cancellable, &error));
# 141| g_simple_async_result_take_error (data->simple, error);
# 142|-> g_simple_async_result_complete_in_idle (data->simple);
# 143| g_object_unref (data->simple);
# 144| }
Error: COMPILER_WARNING (CWE-477): [#def109]
polkit-124/src/polkitbackend/polkitbackendcommon.c: scope_hint: In function ‘utils_timeout_cb’
polkit-124/src/polkitbackend/polkitbackendcommon.c:157:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
# 157 | g_simple_async_result_complete_in_idle (data->simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 155|
# 156| /* we're done */
# 157|-> g_simple_async_result_complete_in_idle (data->simple);
# 158| g_object_unref (data->simple);
# 159|
Error: COMPILER_WARNING (CWE-477): [#def110]
polkit-124/src/polkitbackend/polkitbackendcommon.c: scope_hint: In function ‘utils_child_watch_cb’
polkit-124/src/polkitbackend/polkitbackendcommon.c:190:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
# 190 | g_simple_async_result_complete_in_idle (data->simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 188|
# 189| /* we're done */
# 190|-> g_simple_async_result_complete_in_idle (data->simple);
# 191| g_object_unref (data->simple);
# 192| }
Error: COMPILER_WARNING (CWE-477): [#def111]
polkit-124/src/polkitbackend/polkitbackendcommon.c: scope_hint: In function ‘polkit_backend_common_spawn’
polkit-124/src/polkitbackend/polkitbackendcommon.c:234:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
# 234 | data->simple = g_simple_async_result_new (NULL,
# | ^~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 48 | GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
# 232| data = g_slice_new0 (UtilsSpawnData);
# 233| data->timeout_seconds = timeout_seconds;
# 234|-> data->simple = g_simple_async_result_new (NULL,
# 235| callback,
# 236| user_data,
Error: COMPILER_WARNING (CWE-477): [#def112]
polkit-124/src/polkitbackend/polkitbackendcommon.c:250:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated
# 250 | g_simple_async_result_set_op_res_gpointer (data->simple, data, (GDestroyNotify) utils_spawn_data_free);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:72:21: note: declared here
# 72 | void g_simple_async_result_set_op_res_gpointer (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 248|
# 249| /* the life-cycle of UtilsSpawnData is tied to its GSimpleAsyncResult */
# 250|-> g_simple_async_result_set_op_res_gpointer (data->simple, data, (GDestroyNotify) utils_spawn_data_free);
# 251|
# 252| error = NULL;
Error: COMPILER_WARNING (CWE-477): [#def113]
polkit-124/src/polkitbackend/polkitbackendcommon.c:259:11: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated
# 259 | g_simple_async_result_take_error (data->simple, error);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:113:21: note: declared here
# 113 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 257| if (g_cancellable_set_error_if_cancelled (data->cancellable, &error))
# 258| {
# 259|-> g_simple_async_result_take_error (data->simple, error);
# 260| g_simple_async_result_complete_in_idle (data->simple);
# 261| g_object_unref (data->simple);
Error: COMPILER_WARNING (CWE-477): [#def114]
polkit-124/src/polkitbackend/polkitbackendcommon.c:260:11: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
# 260 | g_simple_async_result_complete_in_idle (data->simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 258| {
# 259| g_simple_async_result_take_error (data->simple, error);
# 260|-> g_simple_async_result_complete_in_idle (data->simple);
# 261| g_object_unref (data->simple);
# 262| goto out;
Error: COMPILER_WARNING (CWE-477): [#def115]
polkit-124/src/polkitbackend/polkitbackendcommon.c:285:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated
# 285 | g_simple_async_result_take_error (data->simple, error);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:113:21: note: declared here
# 113 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 283| {
# 284| g_prefix_error (&error, "Error spawning: ");
# 285|-> g_simple_async_result_take_error (data->simple, error);
# 286| g_simple_async_result_complete_in_idle (data->simple);
# 287| g_object_unref (data->simple);
Error: COMPILER_WARNING (CWE-477): [#def116]
polkit-124/src/polkitbackend/polkitbackendcommon.c:286:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
# 286 | g_simple_async_result_complete_in_idle (data->simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 284| g_prefix_error (&error, "Error spawning: ");
# 285| g_simple_async_result_take_error (data->simple, error);
# 286|-> g_simple_async_result_complete_in_idle (data->simple);
# 287| g_object_unref (data->simple);
# 288| goto out;
Error: COMPILER_WARNING (CWE-477): [#def117]
polkit-124/src/polkitbackend/polkitbackendcommon.c: scope_hint: In function ‘polkit_backend_common_spawn_finish’
polkit-124/src/polkitbackend/polkitbackendcommon.c:372:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
# 372 | g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == polkit_backend_common_spawn);
# | ^~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 96 | gpointer g_simple_async_result_get_source_tag (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 370| g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
# 371|
# 372|-> g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == polkit_backend_common_spawn);
# 373|
# 374| if (g_simple_async_result_propagate_error (simple, error))
Error: COMPILER_WARNING (CWE-477): [#def118]
polkit-124/src/polkitbackend/polkitbackendcommon.c:374:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
# 374 | if (g_simple_async_result_propagate_error (simple, error))
# | ^~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 116 | gboolean g_simple_async_result_propagate_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 372| g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == polkit_backend_common_spawn);
# 373|
# 374|-> if (g_simple_async_result_propagate_error (simple, error))
# 375| goto out;
# 376|
Error: COMPILER_WARNING (CWE-477): [#def119]
polkit-124/src/polkitbackend/polkitbackendcommon.c:377:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
# 377 | data = (UtilsSpawnData*)g_simple_async_result_get_op_res_gpointer (simple);
# | ^~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 76 | gpointer g_simple_async_result_get_op_res_gpointer (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 375| goto out;
# 376|
# 377|-> data = (UtilsSpawnData*)g_simple_async_result_get_op_res_gpointer (simple);
# 378|
# 379| if (data->timed_out)
Error: COMPILER_WARNING: [#def120]
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c: scope_hint: In function ‘polkit_backend_js_authority_init’
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c:98:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 98 | PolkitBackendJsAuthorityPrivate);
# | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 96| authority->priv = G_TYPE_INSTANCE_GET_PRIVATE (authority,
# 97| POLKIT_BACKEND_TYPE_JS_AUTHORITY,
# 98|-> PolkitBackendJsAuthorityPrivate);
# 99| }
# 100|
Error: COMPILER_WARNING (CWE-477): [#def121]
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c: scope_hint: In function ‘polkit_backend_js_authority_class_init’
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c:311:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
# 311 | g_type_class_add_private (klass, sizeof (PolkitBackendJsAuthorityPrivate));
# | ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/glib-2.0/gio/gunixfdlist.h:26: included_from: Included from here.
polkit-124/src/polkitbackend/polkitbackendcommon.h:40: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
# 1497 | void g_type_class_add_private (gpointer g_class,
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 309| {
# 310| polkit_backend_common_js_authority_class_init_common (klass);
# 311|-> g_type_class_add_private (klass, sizeof (PolkitBackendJsAuthorityPrivate));
# 312| }
# 313|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c: scope_hint: In function ‘polkit_backend_common_js_authority_get_admin_auth_identities’
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c:898:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
# 896| if (!push_action_and_details (cx, action_id, details, &error))
# 897| {
# 898|-> polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority),
# 899| "Error converting action and details to JS object: %s",
# 900| error->message);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c:907:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
# 905| if (!push_subject (cx, subject, user_for_subject, subject_is_local, subject_is_active, &error))
# 906| {
# 907|-> polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority),
# 908| "Error converting subject to JS object: %s",
# 909| error->message);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c: scope_hint: In function ‘polkit_backend_common_js_authority_check_authorization_sync’
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c:979:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
# 977| if (!push_action_and_details (cx, action_id, details, &error))
# 978| {
# 979|-> polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority),
# 980| "Error converting action and details to JS object: %s",
# 981| error->message);
Error: CLANG_WARNING: [#def125]
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c:981:37: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
# 979| polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority),
# 980| "Error converting action and details to JS object: %s",
# 981|-> error->message);
# 982| g_clear_error (&error);
# 983| goto out;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c:988:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
# 986| if (!push_subject (cx, subject, user_for_subject, subject_is_local, subject_is_active, &error))
# 987| {
# 988|-> polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority),
# 989| "Error converting subject to JS object: %s",
# 990| error->message);
Error: CLANG_WARNING: [#def127]
polkit-124/src/polkitbackend/polkitbackendduktapeauthority.c:990:37: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
# 988| polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority),
# 989| "Error converting subject to JS object: %s",
# 990|-> error->message);
# 991| g_clear_error (&error);
# 992| goto out;
Error: COMPILER_WARNING: [#def128]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_init’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:300:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 300 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 298| (void)POLKIT_ERROR;
# 299|
# 300|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# 301|
# 302| directory = g_file_new_for_path (PACKAGE_DATA_DIR "/polkit-1/actions");
Error: COMPILER_WARNING: [#def129]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_finalize’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:354:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 354 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 352|
# 353| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (object);
# 354|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 355|
# 356| if (priv->name_owner_changed_signal_id > 0)
Error: COMPILER_WARNING (CWE-477): [#def130]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_class_init’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:419:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
# 419 | g_type_class_add_private (klass, sizeof (PolkitBackendInteractiveAuthorityPrivate));
# | ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
polkit-124/src/polkit/polkittypes.h:25: included_from: Included from here.
polkit-124/src/polkit/polkit.h:27: included_from: Included from here.
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:35: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
# 1497 | void g_type_class_add_private (gpointer g_class,
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 417|
# 418|
# 419|-> g_type_class_add_private (klass, sizeof (PolkitBackendInteractiveAuthorityPrivate));
# 420| }
# 421|
Error: COMPILER_WARNING: [#def131]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_enumerate_actions’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:435:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 435 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 433|
# 434| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
# 435|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 436|
# 437| actions = polkit_backend_action_pool_get_all_actions (priv->action_pool, interactivee);
Error: COMPILER_WARNING: [#def132]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘log_result’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:577:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 577 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 575| gchar *caller_cmdline;
# 576|
# 577|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# 578|
# 579| log_result_str = "DENYING";
Error: COMPILER_WARNING: [#def133]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘check_authorization_challenge_cb’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:644:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 644 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 642| gboolean is_temp;
# 643|
# 644|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# 645|
# 646| result = NULL;
Error: COMPILER_WARNING (CWE-477): [#def134]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:746:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated
# 746 | g_simple_async_result_set_op_res_gpointer (simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
polkit-124/src/polkit/polkitactiondescription.h:30: included_from: Included from here.
polkit-124/src/polkit/polkit.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:72:21: note: declared here
# 72 | void g_simple_async_result_set_op_res_gpointer (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 744| /* log_result (authority, action_id, subject, caller, result); */
# 745|
# 746|-> g_simple_async_result_set_op_res_gpointer (simple,
# 747| result,
# 748| g_object_unref);
Error: COMPILER_WARNING (CWE-477): [#def135]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:749:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
# 749 | g_simple_async_result_complete (simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 747| result,
# 748| g_object_unref);
# 749|-> g_simple_async_result_complete (simple);
# 750| g_object_unref (simple);
# 751|
Error: COMPILER_WARNING (CWE-477): [#def136]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_check_authorization_finish’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:769:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_source_tag’ is deprecated
# 769 | g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == polkit_backend_interactive_authority_check_authorization);
# | ^~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:96:21: note: declared here
# 96 | gpointer g_simple_async_result_get_source_tag (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 767| simple = G_SIMPLE_ASYNC_RESULT (res);
# 768|
# 769|-> g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == polkit_backend_interactive_authority_check_authorization);
# 770|
# 771| result = NULL;
Error: COMPILER_WARNING (CWE-477): [#def137]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:773:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
# 773 | if (g_simple_async_result_propagate_error (simple, error))
# | ^~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 116 | gboolean g_simple_async_result_propagate_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 771| result = NULL;
# 772|
# 773|-> if (g_simple_async_result_propagate_error (simple, error))
# 774| goto out;
# 775|
Error: COMPILER_WARNING (CWE-477): [#def138]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:776:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated
# 776 | result = g_object_ref (g_simple_async_result_get_op_res_gpointer (simple));
# | ^~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:76:21: note: declared here
# 76 | gpointer g_simple_async_result_get_op_res_gpointer (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 774| goto out;
# 775|
# 776|-> result = g_object_ref (g_simple_async_result_get_op_res_gpointer (simple));
# 777|
# 778| out:
Error: COMPILER_WARNING: [#def139]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘may_identity_check_authorization’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:787:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 787 | PolkitBackendInteractiveAuthorityPrivate *priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 785| PolkitIdentity *identity)
# 786| {
# 787|-> PolkitBackendInteractiveAuthorityPrivate *priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 788| gboolean ret = FALSE;
# 789| PolkitActionDescription *action_desc = NULL;
Error: COMPILER_WARNING: [#def140]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_check_authorization’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:866:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 866 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 864|
# 865| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
# 866|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 867|
# 868| error = NULL;
Error: COMPILER_WARNING (CWE-477): [#def141]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:877:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
# 877 | simple = g_simple_async_result_new (G_OBJECT (authority),
# | ^~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 48 | GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
# 875| result = NULL;
# 876|
# 877|-> simple = g_simple_async_result_new (G_OBJECT (authority),
# 878| callback,
# 879| user_data,
Error: COMPILER_WARNING (CWE-477): [#def142]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:905:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
# 905 | g_simple_async_result_set_from_error (simple, error);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 110 | void g_simple_async_result_set_from_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 903| if (error != NULL)
# 904| {
# 905|-> g_simple_async_result_set_from_error (simple, error);
# 906| g_simple_async_result_complete (simple);
# 907| g_object_unref (simple);
Error: COMPILER_WARNING (CWE-477): [#def143]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:906:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
# 906 | g_simple_async_result_complete (simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 904| {
# 905| g_simple_async_result_set_from_error (simple, error);
# 906|-> g_simple_async_result_complete (simple);
# 907| g_object_unref (simple);
# 908| g_error_free (error);
Error: COMPILER_WARNING (CWE-477): [#def144]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:920:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
# 920 | g_simple_async_result_set_from_error (simple, error);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 110 | void g_simple_async_result_set_from_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 918| if (error != NULL)
# 919| {
# 920|-> g_simple_async_result_set_from_error (simple, error);
# 921| g_simple_async_result_complete (simple);
# 922| g_object_unref (simple);
Error: COMPILER_WARNING (CWE-477): [#def145]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:921:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
# 921 | g_simple_async_result_complete (simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 919| {
# 920| g_simple_async_result_set_from_error (simple, error);
# 921|-> g_simple_async_result_complete (simple);
# 922| g_object_unref (simple);
# 923| g_error_free (error);
Error: COMPILER_WARNING (CWE-477): [#def146]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:965:15: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated
# 965 | g_simple_async_result_set_error (simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here
# 119 | void g_simple_async_result_set_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 963| if (has_details)
# 964| {
# 965|-> g_simple_async_result_set_error (simple,
# 966| POLKIT_ERROR,
# 967| POLKIT_ERROR_NOT_AUTHORIZED,
Error: COMPILER_WARNING (CWE-477): [#def147]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:973:15: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated
# 973 | g_simple_async_result_set_error (simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here
# 119 | void g_simple_async_result_set_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 971| else
# 972| {
# 973|-> g_simple_async_result_set_error (simple,
# 974| POLKIT_ERROR,
# 975| POLKIT_ERROR_NOT_AUTHORIZED,
Error: COMPILER_WARNING (CWE-477): [#def148]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:979:11: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
# 979 | g_simple_async_result_complete (simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 977| "subjects belonging to other identities");
# 978| }
# 979|-> g_simple_async_result_complete (simple);
# 980| g_object_unref (simple);
# 981| goto out;
Error: COMPILER_WARNING (CWE-477): [#def149]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:997:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_from_error’ is deprecated
# 997 | g_simple_async_result_set_from_error (simple, error);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:110:21: note: declared here
# 110 | void g_simple_async_result_set_from_error (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 995| if (error != NULL)
# 996| {
# 997|-> g_simple_async_result_set_from_error (simple, error);
# 998| g_simple_async_result_complete (simple);
# 999| g_object_unref (simple);
Error: COMPILER_WARNING (CWE-477): [#def150]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:998:7: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
# 998 | g_simple_async_result_complete (simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 996| {
# 997| g_simple_async_result_set_from_error (simple, error);
# 998|-> g_simple_async_result_complete (simple);
# 999| g_object_unref (simple);
# 1000| g_error_free (error);
Error: COMPILER_WARNING (CWE-477): [#def151]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:1038:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated
# 1038 | g_simple_async_result_set_op_res_gpointer (simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:72:21: note: declared here
# 72 | void g_simple_async_result_set_op_res_gpointer (GSimpleAsyncResult *simple,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1036|
# 1037| /* Otherwise just return the result */
# 1038|-> g_simple_async_result_set_op_res_gpointer (simple,
# 1039| g_object_ref (result),
# 1040| g_object_unref);
Error: COMPILER_WARNING (CWE-477): [#def152]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:1041:3: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
# 1041 | g_simple_async_result_complete (simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1039| g_object_ref (result),
# 1040| g_object_unref);
# 1041|-> g_simple_async_result_complete (simple);
# 1042| g_object_unref (simple);
# 1043|
Error: COMPILER_WARNING: [#def153]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘check_authorization_sync’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:1090:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1090 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1088|
# 1089| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
# 1090|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 1091|
# 1092| result = NULL;
Error: COMPILER_WARNING: [#def154]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘get_authentication_agent_for_subject’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:1706:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1706 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1704| gboolean fallback = FALSE;
# 1705|
# 1706|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# 1707|
# 1708| agent = g_hash_table_lookup (priv->hash_scope_to_authentication_agent, subject);
Error: COMPILER_WARNING: [#def155]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘get_authentication_session_for_uid_and_cookie’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:1779:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1779 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1777| /* TODO: perhaps use a hash on the cookie to speed this up */
# 1778|
# 1779|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# 1780|
# 1781| g_hash_table_iter_init (&hash_iter, priv->hash_scope_to_authentication_agent);
Error: COMPILER_WARNING: [#def156]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘get_authentication_sessions_initiated_by_system_bus_unique_name’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:1832:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1832 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1830| /* TODO: perhaps use a hash on the cookie to speed this up */
# 1831|
# 1832|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# 1833|
# 1834| g_hash_table_iter_init (&hash_iter, priv->hash_scope_to_authentication_agent);
Error: COMPILER_WARNING: [#def157]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘get_authentication_sessions_for_system_bus_unique_name_subject’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:1866:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1866 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1864| /* TODO: perhaps use a hash on the cookie to speed this up */
# 1865|
# 1866|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# 1867|
# 1868| g_hash_table_iter_init (&hash_iter, priv->hash_scope_to_authentication_agent);
Error: COMPILER_WARNING: [#def158]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘get_authentication_agent_by_unique_system_bus_name’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:1898:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1898 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1896| AuthenticationAgent *agent;
# 1897|
# 1898|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# 1899|
# 1900| g_hash_table_iter_init (&hash_iter, priv->hash_scope_to_authentication_agent);
Error: COMPILER_WARNING: [#def159]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘get_localized_data_for_challenge’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:2062:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 2062 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2060| gchar *s;
# 2061|
# 2062|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# 2063|
# 2064| message = NULL;
Error: COMPILER_WARNING: [#def160]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘authentication_agent_initiate_challenge’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:2326:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 2326 | PolkitBackendInteractiveAuthorityPrivate *priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2324| gpointer user_data)
# 2325| {
# 2326|-> PolkitBackendInteractiveAuthorityPrivate *priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
# 2327| AuthenticationSession *session;
# 2328| GList *l;
Error: COMPILER_WARNING: [#def161]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_register_authentication_agent’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:2529:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 2529 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2527|
# 2528| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
# 2529|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 2530|
# 2531| if (POLKIT_IS_UNIX_SESSION (subject))
Error: COMPILER_WARNING: [#def162]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_unregister_authentication_agent’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:2684:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 2684 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2682|
# 2683| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
# 2684|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 2685|
# 2686| ret = FALSE;
Error: COMPILER_WARNING: [#def163]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_authentication_agent_response’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:2844:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 2844 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2842|
# 2843| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
# 2844|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 2845|
# 2846| ret = FALSE;
Error: COMPILER_WARNING: [#def164]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_system_bus_name_owner_changed’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:2928:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 2928 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2926|
# 2927| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
# 2928|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 2929|
# 2930| //g_debug ("name-owner-changed: '%s' '%s' '%s'", name, old_owner, new_owner);
Error: COMPILER_WARNING (CWE-477): [#def165]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_enumerate_temporary_authorizations’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:3365:3: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
# 3365 | GTimeVal real_now;
# | ^~~~~~~~
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gprintf.h:23: included_from: Included from here.
/usr/include/glib-2.0/glib/gstdio.h:24: included_from: Included from here.
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
# 580 | struct _GTimeVal
# | ^~~~~~~~~
# 3363| GList *l;
# 3364| gint64 monotonic_now;
# 3365|-> GTimeVal real_now;
# 3366|
# 3367| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
Error: COMPILER_WARNING: [#def166]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:3368:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 3368 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3366|
# 3367| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
# 3368|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 3369|
# 3370| ret = NULL;
Error: COMPILER_WARNING (CWE-477): [#def167]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:3404:3: warning[-Wdeprecated-declarations]: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead
# 3404 | g_get_current_time (&real_now);
# | ^~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/giochannel.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gmain.h:728:8: note: declared here
# 728 | void g_get_current_time (GTimeVal *result);
# | ^~~~~~~~~~~~~~~~~~
# 3402|
# 3403| monotonic_now = g_get_monotonic_time ();
# 3404|-> g_get_current_time (&real_now);
# 3405|
# 3406| for (l = priv->temporary_authorization_store->authorizations; l != NULL; l = l->next)
Error: COMPILER_WARNING: [#def168]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_revoke_temporary_authorizations’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:3452:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 3452 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3450|
# 3451| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
# 3452|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 3453|
# 3454| ret = FALSE;
Error: COMPILER_WARNING: [#def169]
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c: scope_hint: In function ‘polkit_backend_interactive_authority_revoke_temporary_authorization_by_id’
polkit-124/src/polkitbackend/polkitbackendinteractiveauthority.c:3532:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 3532 | priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3530|
# 3531| interactive_authority = POLKIT_BACKEND_INTERACTIVE_AUTHORITY (authority);
# 3532|-> priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (interactive_authority);
# 3533|
# 3534| ret = FALSE;
Error: COMPILER_WARNING (CWE-252): [#def170]
polkit-124/src/polkitbackend/polkitd.c: scope_hint: In function ‘become_user’
polkit-124/src/polkitbackend/polkitd.c:141:3: warning[-Wunused-result]: ignoring return value of ‘setregid’ declared with attribute ‘warn_unused_result’
# 141 | setregid (pw->pw_gid, pw->pw_gid);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 139| }
# 140|
# 141|-> setregid (pw->pw_gid, pw->pw_gid);
# 142| setreuid (pw->pw_uid, pw->pw_uid);
# 143| if ((geteuid () != pw->pw_uid) || (getuid () != pw->pw_uid) ||
Error: CLANG_WARNING: [#def171]
polkit-124/src/polkitbackend/polkitd.c:141:3: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setregid' is not checked. If an error occurs in 'setregid', the following code may execute with unexpected privileges
# 139| }
# 140|
# 141|-> setregid (pw->pw_gid, pw->pw_gid);
# 142| setreuid (pw->pw_uid, pw->pw_uid);
# 143| if ((geteuid () != pw->pw_uid) || (getuid () != pw->pw_uid) ||
Error: COMPILER_WARNING (CWE-252): [#def172]
polkit-124/src/polkitbackend/polkitd.c:142:3: warning[-Wunused-result]: ignoring return value of ‘setreuid’ declared with attribute ‘warn_unused_result’
# 142 | setreuid (pw->pw_uid, pw->pw_uid);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 140|
# 141| setregid (pw->pw_gid, pw->pw_gid);
# 142|-> setreuid (pw->pw_uid, pw->pw_uid);
# 143| if ((geteuid () != pw->pw_uid) || (getuid () != pw->pw_uid) ||
# 144| (getegid () != pw->pw_gid) || (getgid () != pw->pw_gid))
Error: CLANG_WARNING: [#def173]
polkit-124/src/polkitbackend/polkitd.c:142:3: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setreuid' is not checked. If an error occurs in 'setreuid', the following code may execute with unexpected privileges
# 140|
# 141| setregid (pw->pw_gid, pw->pw_gid);
# 142|-> setreuid (pw->pw_uid, pw->pw_uid);
# 143| if ((geteuid () != pw->pw_uid) || (getuid () != pw->pw_uid) ||
# 144| (getegid () != pw->pw_gid) || (getgid () != pw->pw_gid))
Error: COMPILER_WARNING (CWE-477): [#def174]
polkit-124/src/programs/pkcheck.c: scope_hint: In function ‘do_list_or_revoke_temp_authz’
polkit-124/src/programs/pkcheck.c:274:11: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
polkit-124/src/programs/pkcheck.c:28: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
# 272| time_t obtained;
# 273| time_t expires;
# 274|-> GTimeVal now;
# 275| gchar *subject_str;
# 276| gchar obtained_str[64];
Error: COMPILER_WARNING (CWE-477): [#def175]
polkit-124/src/programs/pkcheck.c:290:11: warning[-Wdeprecated-declarations]: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead
/usr/include/glib-2.0/glib/giochannel.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gmain.h:728:8: note: declared here
# 288| expires = polkit_temporary_authorization_get_time_expires (a);
# 289|
# 290|-> g_get_current_time (&now);
# 291|
# 292| broken_down = localtime (&obtained);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def176]
polkit-124/src/programs/pkexec.c: scope_hint: In function ‘main’
polkit-124/src/programs/pkexec.c:808:7: warning[-Wanalyzer-null-argument]: use of NULL ‘command_line’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
polkit-124/src/programs/pkexec.c:40: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
polkit-124/src/programs/pkexec.c:601:16: note: in expansion of macro ‘g_strdup’
polkit-124/src/programs/pkexec.c: scope_hint: In function ‘main’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:626:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:626:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:772:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:773:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:773:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:774:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:774:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:775:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:775:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:787:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:787:3: note: in expansion of macro ‘g_assert’
polkit-124/src/programs/pkexec.c:335:17: note: in expansion of macro ‘g_strdup’
polkit-124/src/programs/pkexec.c: scope_hint: In function ‘main’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
polkit-124/src/programs/pkexec.c:792:3: note: in expansion of macro ‘g_assert’
polkit-124/src/programs/pkexec.c:807:19: note: in expansion of macro ‘g_strdup’
polkit-124/src/programs/pkexec.c: scope_hint: In function ‘main’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 806|
# 807| cmdline_short = g_strdup(command_line);
# 808|-> if (strlen(command_line) > 80)
# 809| g_stpcpy(g_stpcpy( cmdline_short + 38, " ... " ),
# 810| command_line + strlen(command_line) - 37 );
Error: COMPILER_WARNING (CWE-252): [#def177]
polkit-124/src/programs/pkexec.c: scope_hint: In function ‘main’
polkit-124/src/programs/pkexec.c:962:7: warning[-Wunused-result]: ignoring return value of ‘setreuid’ declared with attribute ‘warn_unused_result’
# 962 | setreuid (0, 0);
# | ^~~~~~~~~~~~~~~
# 960| if (pw->pw_uid != 0)
# 961| {
# 962|-> setreuid (0, 0);
# 963| if ((geteuid () != 0) || (getuid () != 0))
# 964| {
Error: CLANG_WARNING: [#def178]
polkit-124/src/programs/pkexec.c:962:7: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setreuid' is not checked. If an error occurs in 'setreuid', the following code may execute with unexpected privileges
# 960| if (pw->pw_uid != 0)
# 961| {
# 962|-> setreuid (0, 0);
# 963| if ((geteuid () != 0) || (getuid () != 0))
# 964| {
Error: COMPILER_WARNING (CWE-252): [#def179]
polkit-124/src/programs/pkexec.c:1015:3: warning[-Wunused-result]: ignoring return value of ‘setregid’ declared with attribute ‘warn_unused_result’
# 1015 | setregid (pw->pw_gid, pw->pw_gid);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1013| goto out;
# 1014| }
# 1015|-> setregid (pw->pw_gid, pw->pw_gid);
# 1016| setreuid (pw->pw_uid, pw->pw_uid);
# 1017| if ((geteuid () != pw->pw_uid) || (getuid () != pw->pw_uid) ||
Error: CLANG_WARNING: [#def180]
polkit-124/src/programs/pkexec.c:1015:3: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setregid' is not checked. If an error occurs in 'setregid', the following code may execute with unexpected privileges
# 1013| goto out;
# 1014| }
# 1015|-> setregid (pw->pw_gid, pw->pw_gid);
# 1016| setreuid (pw->pw_uid, pw->pw_uid);
# 1017| if ((geteuid () != pw->pw_uid) || (getuid () != pw->pw_uid) ||
Error: COMPILER_WARNING (CWE-252): [#def181]
polkit-124/src/programs/pkexec.c:1016:3: warning[-Wunused-result]: ignoring return value of ‘setreuid’ declared with attribute ‘warn_unused_result’
# 1016 | setreuid (pw->pw_uid, pw->pw_uid);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1014| }
# 1015| setregid (pw->pw_gid, pw->pw_gid);
# 1016|-> setreuid (pw->pw_uid, pw->pw_uid);
# 1017| if ((geteuid () != pw->pw_uid) || (getuid () != pw->pw_uid) ||
# 1018| (getegid () != pw->pw_gid) || (getgid () != pw->pw_gid))
Error: CLANG_WARNING: [#def182]
polkit-124/src/programs/pkexec.c:1016:3: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setreuid' is not checked. If an error occurs in 'setreuid', the following code may execute with unexpected privileges
# 1014| }
# 1015| setregid (pw->pw_gid, pw->pw_gid);
# 1016|-> setreuid (pw->pw_uid, pw->pw_uid);
# 1017| if ((geteuid () != pw->pw_uid) || (getuid () != pw->pw_uid) ||
# 1018| (getegid () != pw->pw_gid) || (getgid () != pw->pw_gid))
Scan Properties
analyzer-version-clang | 18.1.3 |
analyzer-version-cppcheck | 2.13.0 |
analyzer-version-gcc | 14.0.1 |
analyzer-version-gcc-analyzer | 14.0.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-133.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | polkit-124-3.fc41 |
store-results-to | /tmp/tmp6kum3npw/polkit-124-3.fc41.tar.xz |
time-created | 2024-04-22 11:13:41 |
time-finished | 2024-04-22 11:15:07 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp6kum3npw/polkit-124-3.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp6kum3npw/polkit-124-3.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |