Error: CPPCHECK_WARNING (CWE-457): [#def1] gcr-4.4.0.1/egg/egg-asn1x.c:1003: error[uninitvar]: Uninitialized variable: tag # 1001| if (anode_def_type (node) == EGG_ASN1X_SET) { # 1002| for (ctlv = tlv->child, i = 0; ctlv != NULL; ctlv = ctlv->next, i++) { # 1003|-> if (i > 0 && tag > ctlv->tag) # 1004| return anode_failure (node, "content must be in ascending order"); # 1005| tag = ctlv->tag; Error: COMPILER_WARNING (CWE-477): [#def2] gcr-4.4.0.1/egg/egg-file-tracker.c: scope_hint: In function ‘update_directory’ gcr-4.4.0.1/egg/egg-file-tracker.c:168:17: warning[-Wdeprecated-declarations]: ‘g_pattern_match_string’ is deprecated: Use 'g_pattern_spec_match_string' instead # 168 | if (self->include && !g_pattern_match_string (self->include, filename)) # | ^~ /usr/include/glib-2.0/glib.h:68: 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. gcr-4.4.0.1/egg/egg-file-tracker.h:26: included_from: Included from here. gcr-4.4.0.1/egg/egg-file-tracker.c:25: included_from: Included from here. /usr/include/glib-2.0/glib/gpattern.h:57:15: note: declared here # 57 | gboolean g_pattern_match_string (GPatternSpec *pspec, # | ^~~~~~~~~~~~~~~~~~~~~~ # 166| if (filename[0] == '.') # 167| continue; # 168|-> if (self->include && !g_pattern_match_string (self->include, filename)) # 169| continue; # 170| if (self->exclude && g_pattern_match_string (self->exclude, filename)) Error: COMPILER_WARNING (CWE-477): [#def3] gcr-4.4.0.1/egg/egg-file-tracker.c:170:17: warning[-Wdeprecated-declarations]: ‘g_pattern_match_string’ is deprecated: Use 'g_pattern_spec_match_string' instead # 170 | if (self->exclude && g_pattern_match_string (self->exclude, filename)) # | ^~ /usr/include/glib-2.0/glib/gpattern.h:57:15: note: declared here # 57 | gboolean g_pattern_match_string (GPatternSpec *pspec, # | ^~~~~~~~~~~~~~~~~~~~~~ # 168| if (self->include && !g_pattern_match_string (self->include, filename)) # 169| continue; # 170|-> if (self->exclude && g_pattern_match_string (self->exclude, filename)) # 171| continue; # 172| Error: CPPCHECK_WARNING (CWE-457): [#def4] gcr-4.4.0.1/gcr/gcr-certificate-chain.c:336: error[uninitvar]: Uninitialized variable: length # 334| # 335| g_ptr_array_add (pv->certificates, certificate); # 336|-> ++length; # 337| # 338| /* See if this certificate is an anchor */ Error: COMPILER_WARNING (CWE-457): [#def5] gcr-4.4.0.1/gcr/gcr-certificate-extension-authority-info-access.c: scope_hint: In function ‘_gcr_certificate_extension_authority_info_access_parse’ gcr-4.4.0.1/gcr/gcr-certificate-extension-authority-info-access.c:337:12: warning[-Wmaybe-uninitialized]: ‘descriptions’ may be used uninitialized # 337 | if (descriptions != NULL) # | ^ gcr-4.4.0.1/gcr/gcr-certificate-extension-authority-info-access.c:278:20: note: ‘descriptions’ was declared here # 278 | GPtrArray *descriptions; # | ^~~~~~~~~~~~ # 335| # 336| out: # 337|-> if (descriptions != NULL) # 338| g_ptr_array_unref (descriptions); # 339| if (asn != NULL) Error: CPPCHECK_WARNING (CWE-457): [#def6] gcr-4.4.0.1/gcr/gcr-certificate-extension-authority-key-identifier.c:180: error[legacyUninitvar]: Uninitialized variable: issuer_names # 178| } # 179| # 180|-> if ((issuer_names == NULL) != (serial_nr == NULL)) { # 181| g_set_error_literal (error, # 182| GCR_CERTIFICATE_EXTENSION_PARSE_ERROR, Error: CPPCHECK_WARNING (CWE-457): [#def7] gcr-4.4.0.1/gcr/gcr-certificate-extension-crl-distribution-points.c:128: error[legacyUninitvar]: Uninitialized variable: oid # 126| g_hash_table_iter_init (&iter, self->relative_name); # 127| while (g_hash_table_iter_next (&iter, &key, &value)) { # 128|-> GQuark oid = GPOINTER_TO_INT (oid); # 129| const char *display = (const char *) value; # 130| Error: COMPILER_WARNING (CWE-457): [#def8] gcr-4.4.0.1/gcr/gcr-certificate-extension-crl-distribution-points.c: scope_hint: In function ‘gcr_distribution_point_get_relative_name_part’ gcr-4.4.0.1/gcr/gcr-certificate-extension-crl-distribution-points.c:131:22: warning[-Wmaybe-uninitialized]: ‘oid’ may be used uninitialized # 131 | if ((g_ascii_strcasecmp (g_quark_to_string (oid), part) == 0) || # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcr-4.4.0.1/gcr/gcr-certificate-extension-crl-distribution-points.c:128:24: note: ‘oid’ was declared here # 128 | GQuark oid = GPOINTER_TO_INT (oid); # | ^~~ # 129| const char *display = (const char *) value; # 130| # 131|-> if ((g_ascii_strcasecmp (g_quark_to_string (oid), part) == 0) || # 132| (g_ascii_strcasecmp (egg_oid_get_name (oid), part) == 0)) { # 133| return g_strdup (display); Error: CPPCHECK_WARNING (CWE-562): [#def9] gcr-4.4.0.1/gcr/gcr-certificate-extension.c:371: error[returnDanglingLifetime]: Returning pointer to local variable 'error' that will be invalid when returning. # 369| } # 370| # 371|-> return ext; # 372| } Error: CPPCHECK_WARNING (CWE-457): [#def10] gcr-4.4.0.1/gcr/gcr-certificate.c:1298: error[legacyUninitvar]: Uninitialized variable: label # 1296| display = g_strdup (""); # 1297| # 1298|-> _gcr_certificate_section_new_field_take_value (section, label, g_steal_pointer (&display)); # 1299| g_clear_pointer (&label, g_free); # 1300| } Error: COMPILER_WARNING (CWE-477): [#def11] gcr-4.4.0.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘on_timeout_complete’ gcr-4.4.0.1/gcr/gcr-mock-prompter.c:387:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 387 | g_simple_async_result_complete (res); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here. gcr-4.4.0.1/gck/gck.h:28: included_from: Included from here. gcr-4.4.0.1/gcr/gcr-types.h:40: included_from: Included from here. gcr-4.4.0.1/gcr/gcr-prompt.h:29: included_from: Included from here. gcr-4.4.0.1/gcr/gcr-system-prompter.h:29: included_from: Included from here. gcr-4.4.0.1/gcr/gcr-mock-prompter.h:29: included_from: Included from here. gcr-4.4.0.1/gcr/gcr-mock-prompter.c:24: included_from: Included from here. /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 385| { # 386| GSimpleAsyncResult *res = data; # 387|-> g_simple_async_result_complete (res); # 388| return FALSE; # 389| } Error: COMPILER_WARNING (CWE-477): [#def12] gcr-4.4.0.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘on_timeout_complete_and_close’ gcr-4.4.0.1/gcr/gcr-mock-prompter.c:396:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 396 | g_simple_async_result_complete (res); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 394| GSimpleAsyncResult *res = data; # 395| GcrPrompt *prompt = GCR_PROMPT (g_async_result_get_source_object (data)); # 396|-> g_simple_async_result_complete (res); # 397| gcr_prompt_close (prompt); # 398| g_object_unref (prompt); Error: COMPILER_WARNING (CWE-477): [#def13] gcr-4.4.0.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_confirm_async’ gcr-4.4.0.1/gcr/gcr-mock-prompter.c:428:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead # 428 | res = g_simple_async_result_new (G_OBJECT (prompt), callback, user_data, # | ^~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here # 48 | GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object, # | ^~~~~~~~~~~~~~~~~~~~~~~~~ # 426| g_mutex_unlock (running->mutex); # 427| # 428|-> res = g_simple_async_result_new (G_OBJECT (prompt), callback, user_data, # 429| gcr_mock_prompt_confirm_async); # 430| Error: COMPILER_WARNING (CWE-477): [#def14] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:433:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated # 433 | g_simple_async_result_set_op_res_gboolean (res, FALSE); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:85:21: note: declared here # 85 | void g_simple_async_result_set_op_res_gboolean (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 431| if (response == NULL) { # 432| g_critical ("password prompt requested, but not expected"); # 433|-> g_simple_async_result_set_op_res_gboolean (res, FALSE); # 434| # 435| } else if (response->close) { Error: COMPILER_WARNING (CWE-477): [#def15] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:437:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated # 437 | g_simple_async_result_set_op_res_gboolean (res, FALSE); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:85:21: note: declared here # 85 | void g_simple_async_result_set_op_res_gboolean (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 435| } else if (response->close) { # 436| complete_func = on_timeout_complete_and_close; # 437|-> g_simple_async_result_set_op_res_gboolean (res, FALSE); # 438| # 439| } else if (response->password) { Error: COMPILER_WARNING (CWE-477): [#def16] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:441:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated # 441 | g_simple_async_result_set_op_res_gboolean (res, FALSE); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:85:21: note: declared here # 85 | void g_simple_async_result_set_op_res_gboolean (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 439| } else if (response->password) { # 440| g_critical ("confirmation prompt requested, but password prompt expected"); # 441|-> g_simple_async_result_set_op_res_gboolean (res, FALSE); # 442| # 443| } else { Error: COMPILER_WARNING (CWE-477): [#def17] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:445:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated # 445 | g_simple_async_result_set_op_res_gboolean (res, response->proceed); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:85:21: note: declared here # 85 | void g_simple_async_result_set_op_res_gboolean (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 443| } else { # 444| prompt_set_or_check_properties (self, response->properties); # 445|-> g_simple_async_result_set_op_res_gboolean (res, response->proceed); # 446| } # 447| Error: COMPILER_WARNING (CWE-477): [#def18] gcr-4.4.0.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_confirm_finish’ gcr-4.4.0.1/gcr/gcr-mock-prompter.c:466:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 466 | g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (prompt), # | ^~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 132 | gboolean g_simple_async_result_is_valid (GAsyncResult *result, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 464| GError **error) # 465| { # 466|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (prompt), # 467| gcr_mock_prompt_confirm_async), GCR_PROMPT_REPLY_CANCEL); # 468| Error: COMPILER_WARNING (CWE-477): [#def19] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:469:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gboolean’ is deprecated # 469 | return g_simple_async_result_get_op_res_gboolean (G_SIMPLE_ASYNC_RESULT (result)) ? # | ^~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:88:21: note: declared here # 88 | gboolean g_simple_async_result_get_op_res_gboolean (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 467| gcr_mock_prompt_confirm_async), GCR_PROMPT_REPLY_CANCEL); # 468| # 469|-> return g_simple_async_result_get_op_res_gboolean (G_SIMPLE_ASYNC_RESULT (result)) ? # 470| GCR_PROMPT_REPLY_CONTINUE : GCR_PROMPT_REPLY_CANCEL; # 471| } Error: COMPILER_WARNING (CWE-477): [#def20] gcr-4.4.0.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_password_async’ gcr-4.4.0.1/gcr/gcr-mock-prompter.c:507:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead # 507 | res = g_simple_async_result_new (G_OBJECT (prompt), callback, user_data, # | ^~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here # 48 | GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object, # | ^~~~~~~~~~~~~~~~~~~~~~~~~ # 505| g_mutex_unlock (running->mutex); # 506| # 507|-> res = g_simple_async_result_new (G_OBJECT (prompt), callback, user_data, # 508| gcr_mock_prompt_password_async); # 509| Error: COMPILER_WARNING (CWE-477): [#def21] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:512:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 512 | g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 510| if (response == NULL) { # 511| g_critical ("password prompt requested, but not expected"); # 512|-> g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # 513| # 514| } else if (response->close) { Error: COMPILER_WARNING (CWE-477): [#def22] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:515:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 515 | g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 513| # 514| } else if (response->close) { # 515|-> g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # 516| complete_func = on_timeout_complete_and_close; # 517| Error: COMPILER_WARNING (CWE-477): [#def23] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:520:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 520 | g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 518| } else if (!response->password) { # 519| g_critical ("password prompt requested, but confirmation prompt expected"); # 520|-> g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # 521| # 522| } else if (!response->proceed) { Error: COMPILER_WARNING (CWE-477): [#def24] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:524:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 524 | g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 522| } else if (!response->proceed) { # 523| prompt_set_or_check_properties (self, response->properties); # 524|-> g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # 525| # 526| } else { Error: COMPILER_WARNING (CWE-477): [#def25] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:529:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 529 | g_simple_async_result_set_op_res_gpointer (res, response->password, g_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, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 527| ensure_password_strength (self, response->password); # 528| prompt_set_or_check_properties (self, response->properties); # 529|-> g_simple_async_result_set_op_res_gpointer (res, response->password, g_free); # 530| response->password = NULL; # 531| } Error: COMPILER_WARNING (CWE-477): [#def26] gcr-4.4.0.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_password_finish’ gcr-4.4.0.1/gcr/gcr-mock-prompter.c:553:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 553 | g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (prompt), # | ^~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 132 | gboolean g_simple_async_result_is_valid (GAsyncResult *result, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 551| GError **error) # 552| { # 553|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (prompt), # 554| gcr_mock_prompt_password_async), NULL); # 555| Error: COMPILER_WARNING (CWE-477): [#def27] gcr-4.4.0.1/gcr/gcr-mock-prompter.c:556:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 556 | return g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result)); # | ^~~~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 554| gcr_mock_prompt_password_async), NULL); # 555| # 556|-> return g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result)); # 557| # 558| } Error: COMPILER_WARNING (CWE-477): [#def28] gcr-4.4.0.1/gcr/gcr-ssh-agent-process.c: scope_hint: In function ‘on_child_watch’ gcr-4.4.0.1/gcr/gcr-ssh-agent-process.c:150:9: warning[-Wdeprecated-declarations]: ‘g_spawn_check_exit_status’ is deprecated: Use 'g_spawn_check_wait_status' instead # 150 | if (!g_spawn_check_exit_status (status, &error)) { # | ^~ /usr/include/glib-2.0/glib.h:84: 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. /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. gcr-4.4.0.1/gcr/gcr-ssh-agent-process.h:27: included_from: Included from here. gcr-4.4.0.1/gcr/gcr-ssh-agent-process.c:26: included_from: Included from here. /usr/include/glib-2.0/glib/gspawn.h:315:10: note: declared here # 315 | gboolean g_spawn_check_exit_status (gint wait_status, # | ^~~~~~~~~~~~~~~~~~~~~~~~~ # 148| self->child_id = 0; # 149| # 150|-> if (!g_spawn_check_exit_status (status, &error)) { # 151| g_message ("ssh-agent: %s", error->message); # 152| g_error_free (error); Error: COMPILER_WARNING (CWE-477): [#def29] gcr-4.4.0.1/gcr/gcr-ssh-agent-service.c: scope_hint: In function ‘ensure_key’ gcr-4.4.0.1/gcr/gcr-ssh-agent-service.c:285:9: warning[-Wdeprecated-declarations]: ‘g_spawn_check_exit_status’ is deprecated: Use 'g_spawn_check_wait_status' instead # 285 | } else if (!g_spawn_check_exit_status (status, &error)) { # | ^ /usr/include/glib-2.0/glib.h:84: 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. /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. gcr-4.4.0.1/gcr/gcr-ssh-agent-service.h:27: included_from: Included from here. gcr-4.4.0.1/gcr/gcr-ssh-agent-service.c:26: included_from: Included from here. /usr/include/glib-2.0/glib/gspawn.h:315:10: note: declared here # 315 | gboolean g_spawn_check_exit_status (gint wait_status, # | ^~~~~~~~~~~~~~~~~~~~~~~~~ # 283| NULL, &standard_error, &status, &error)) { # 284| g_warning ("couldn't run %s: %s", argv[0], error->message); # 285|-> } else if (!g_spawn_check_exit_status (status, &error)) { # 286| g_message ("the %s command failed: %s", argv[0], error->message); # 287| g_printerr ("%s", _gcr_ssh_agent_canon_error (standard_error)); Error: COMPILER_WARNING (CWE-477): [#def30] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_prompter_stop_prompting’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:434:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 434 | g_simple_async_result_complete (async); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here. gcr-4.4.0.1/gcr/gcr-internal.h:26: included_from: Included from here. gcr-4.4.0.1/gcr/gcr-system-prompt.c:25: included_from: Included from here. /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 432| if (user_data) { # 433| async = G_SIMPLE_ASYNC_RESULT (user_data); # 434|-> g_simple_async_result_complete (async); # 435| g_object_unref (async); # 436| } Error: COMPILER_WARNING (CWE-477): [#def31] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘perform_close’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:458:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 458 | closure = g_simple_async_result_get_op_res_gpointer (res); # | ^~~~~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 456| res = g_object_ref (self->pv->pending); # 457| g_clear_object (&self->pv->pending); # 458|-> closure = g_simple_async_result_get_op_res_gpointer (res); # 459| g_cancellable_cancel (closure->cancellable); # 460| g_simple_async_result_complete_in_idle (res); Error: COMPILER_WARNING (CWE-477): [#def32] gcr-4.4.0.1/gcr/gcr-system-prompt.c:460:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated # 460 | g_simple_async_result_complete_in_idle (res); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here # 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 458| closure = g_simple_async_result_get_op_res_gpointer (res); # 459| g_cancellable_cancel (closure->cancellable); # 460|-> g_simple_async_result_complete_in_idle (res); # 461| g_object_unref (res); # 462| } Error: COMPILER_WARNING (CWE-477): [#def33] gcr-4.4.0.1/gcr/gcr-system-prompt.c:495:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated # 495 | g_simple_async_result_complete_in_idle (async); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here # 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 493| # 494| if (!called && async) # 495|-> g_simple_async_result_complete_in_idle (async); # 496| # 497| /* Emit the signal if necessary, after closed */ Error: COMPILER_WARNING (CWE-477): [#def34] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘prompt_method_ready’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:663:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 663 | g_simple_async_result_complete (res); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 661| res = g_object_ref (self->pv->pending); # 662| g_clear_object (&self->pv->pending); # 663|-> g_simple_async_result_complete (res); # 664| g_object_unref (res); # 665| } Error: COMPILER_WARNING (CWE-477): [#def35] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_prompter_vanished’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:789:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 789 | CallClosure *call = g_simple_async_result_get_op_res_gpointer (user_data); # | ^~~~~~~~~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 787| { # 788| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data)); # 789|-> CallClosure *call = g_simple_async_result_get_op_res_gpointer (user_data); # 790| # 791| if (self->pv->prompt_owner) { Error: COMPILER_WARNING (CWE-477): [#def36] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_bus_connected’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:808:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 808 | CallClosure *closure = g_simple_async_result_get_op_res_gpointer (res); # | ^~~~~~~~~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 806| GSimpleAsyncResult *res = G_SIMPLE_ASYNC_RESULT (user_data); # 807| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data)); # 808|-> CallClosure *closure = g_simple_async_result_get_op_res_gpointer (res); # 809| GError *error = NULL; # 810| Error: COMPILER_WARNING (CWE-477): [#def37] gcr-4.4.0.1/gcr/gcr-system-prompt.c:838:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated # 838 | g_simple_async_result_take_error (res, error); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:113:21: note: declared here # 113 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 836| perform_init_async (self, res); # 837| } else { # 838|-> g_simple_async_result_take_error (res, error); # 839| g_simple_async_result_complete (res); # 840| } Error: COMPILER_WARNING (CWE-477): [#def38] gcr-4.4.0.1/gcr/gcr-system-prompt.c:839:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 839 | g_simple_async_result_complete (res); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 837| } else { # 838| g_simple_async_result_take_error (res, error); # 839|-> g_simple_async_result_complete (res); # 840| } # 841| Error: COMPILER_WARNING (CWE-477): [#def39] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_prompter_begin_prompting’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:872:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated # 872 | g_simple_async_result_take_error (res, error); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:113:21: note: declared here # 113 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 870| self->pv->prompter_bus_name, egg_error_message (error)); # 871| # 872|-> g_simple_async_result_take_error (res, error); # 873| g_simple_async_result_complete (res); # 874| } Error: COMPILER_WARNING (CWE-477): [#def40] gcr-4.4.0.1/gcr/gcr-system-prompt.c:873:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 873 | g_simple_async_result_complete (res); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 871| # 872| g_simple_async_result_take_error (res, error); # 873|-> g_simple_async_result_complete (res); # 874| } # 875| Error: COMPILER_WARNING (CWE-477): [#def41] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_call_timeout’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:884:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 884 | CallClosure *closure = g_simple_async_result_get_op_res_gpointer (res); # | ^~~~~~~~~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 882| { # 883| GSimpleAsyncResult *res = G_SIMPLE_ASYNC_RESULT (user_data); # 884|-> CallClosure *closure = g_simple_async_result_get_op_res_gpointer (res); # 885| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data)); # 886| Error: COMPILER_WARNING (CWE-477): [#def42] gcr-4.4.0.1/gcr/gcr-system-prompt.c:894:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated # 894 | g_simple_async_result_set_error (res, GCR_SYSTEM_PROMPT_ERROR, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here # 119 | void g_simple_async_result_set_error (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 892| gcr_system_prompt_close_async (self, NULL, NULL, NULL); # 893| # 894|-> g_simple_async_result_set_error (res, GCR_SYSTEM_PROMPT_ERROR, # 895| GCR_SYSTEM_PROMPT_IN_PROGRESS, # 896| _("Another prompt is already in progress")); Error: COMPILER_WARNING (CWE-477): [#def43] gcr-4.4.0.1/gcr/gcr-system-prompt.c:897:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 897 | g_simple_async_result_complete (res); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 895| GCR_SYSTEM_PROMPT_IN_PROGRESS, # 896| _("Another prompt is already in progress")); # 897|-> g_simple_async_result_complete (res); # 898| # 899| g_object_unref (self); Error: COMPILER_WARNING (CWE-477): [#def44] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_call_cancelled’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:908:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 908 | CallClosure *call = g_simple_async_result_get_op_res_gpointer (async); # | ^~~~~~~~~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 906| { # 907| GSimpleAsyncResult *async = G_SIMPLE_ASYNC_RESULT (user_data); # 908|-> CallClosure *call = g_simple_async_result_get_op_res_gpointer (async); # 909| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data)); # 910| Error: COMPILER_WARNING (CWE-477): [#def45] gcr-4.4.0.1/gcr/gcr-system-prompt.c:915:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated # 915 | g_simple_async_result_set_error (async, G_IO_ERROR, G_IO_ERROR_CANCELLED, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here # 119 | void g_simple_async_result_set_error (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 913| call->waiting = NULL; # 914| # 915|-> g_simple_async_result_set_error (async, G_IO_ERROR, G_IO_ERROR_CANCELLED, # 916| _("The operation was cancelled")); # 917| Error: COMPILER_WARNING (CWE-477): [#def46] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘perform_init_async’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:929:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 929 | CallClosure *closure = g_simple_async_result_get_op_res_gpointer (res); # | ^~~~~~~~~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 927| GSimpleAsyncResult *res) # 928| { # 929|-> CallClosure *closure = g_simple_async_result_get_op_res_gpointer (res); # 930| # 931| g_main_context_push_thread_default (closure->context); Error: COMPILER_WARNING (CWE-477): [#def47] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_real_init_async’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:990:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead # 990 | res = g_simple_async_result_new (G_OBJECT (self), callback, user_data, # | ^~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here # 48 | GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object, # | ^~~~~~~~~~~~~~~~~~~~~~~~~ # 988| CallClosure *closure; # 989| # 990|-> res = g_simple_async_result_new (G_OBJECT (self), callback, user_data, # 991| gcr_system_prompt_real_init_async); # 992| closure = call_closure_new (cancellable); Error: COMPILER_WARNING (CWE-477): [#def48] gcr-4.4.0.1/gcr/gcr-system-prompt.c:996:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 996 | g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_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, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 994| if (closure->context) # 995| g_main_context_ref (closure->context); # 996|-> g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_free); # 997| # 998| perform_init_async (self, res); Error: COMPILER_WARNING (CWE-477): [#def49] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_real_init_finish’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:1011:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 1011 | g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (self), # | ^~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 132 | gboolean g_simple_async_result_is_valid (GAsyncResult *result, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1009| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (initable); # 1010| # 1011|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (self), # 1012| gcr_system_prompt_real_init_async), FALSE); # 1013| Error: COMPILER_WARNING (CWE-477): [#def50] gcr-4.4.0.1/gcr/gcr-system-prompt.c:1014:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated # 1014 | if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error)) # | ^~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here # 116 | gboolean g_simple_async_result_propagate_error (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1012| gcr_system_prompt_real_init_async), FALSE); # 1013| # 1014|-> if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error)) # 1015| return FALSE; # 1016| Error: COMPILER_WARNING (CWE-477): [#def51] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_perform_prompt_complete’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:1126:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 1126 | CallClosure *call = g_simple_async_result_get_op_res_gpointer (res); # | ^~~~~~~~~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1124| GSimpleAsyncResult *res = G_SIMPLE_ASYNC_RESULT (user_data); # 1125| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data)); # 1126|-> CallClosure *call = g_simple_async_result_get_op_res_gpointer (res); # 1127| GError *error = NULL; # 1128| GVariant *retval; Error: COMPILER_WARNING (CWE-477): [#def52] gcr-4.4.0.1/gcr/gcr-system-prompt.c:1133:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated # 1133 | g_simple_async_result_take_error (res, error); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:113:21: note: declared here # 113 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1131| if (error != NULL) { # 1132| self->pv->pending = NULL; # 1133|-> g_simple_async_result_take_error (res, error); # 1134| g_simple_async_result_complete (res); # 1135| } else { Error: COMPILER_WARNING (CWE-477): [#def53] gcr-4.4.0.1/gcr/gcr-system-prompt.c:1134:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 1134 | g_simple_async_result_complete (res); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 101 | void g_simple_async_result_complete (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1132| self->pv->pending = NULL; # 1133| g_simple_async_result_take_error (res, error); # 1134|-> g_simple_async_result_complete (res); # 1135| } else { # 1136| g_assert (call->waiting == NULL); Error: COMPILER_WARNING (CWE-477): [#def54] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘perform_prompt_async’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:1171:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead # 1171 | res = g_simple_async_result_new (G_OBJECT (self), callback, user_data, source_tag); # | ^~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here # 48 | GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object, # | ^~~~~~~~~~~~~~~~~~~~~~~~~ # 1169| } # 1170| # 1171|-> res = g_simple_async_result_new (G_OBJECT (self), callback, user_data, source_tag); # 1172| closure = call_closure_new (cancellable); # 1173| g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_free); Error: COMPILER_WARNING (CWE-477): [#def55] gcr-4.4.0.1/gcr/gcr-system-prompt.c:1173:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 1173 | g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_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, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1171| res = g_simple_async_result_new (G_OBJECT (self), callback, user_data, source_tag); # 1172| closure = call_closure_new (cancellable); # 1173|-> g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_free); # 1174| # 1175| if (self->pv->closed) { Error: COMPILER_WARNING (CWE-477): [#def56] gcr-4.4.0.1/gcr/gcr-system-prompt.c:1178:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated # 1178 | g_simple_async_result_complete_in_idle (res); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here # 103 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1176| g_free (self->pv->last_response); # 1177| self->pv->last_response = g_strdup (GCR_DBUS_PROMPT_REPLY_NONE); # 1178|-> g_simple_async_result_complete_in_idle (res); # 1179| g_object_unref (res); # 1180| return; Error: COMPILER_WARNING (CWE-477): [#def57] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_password_finish’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:1264:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 1264 | g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (self), # | ^~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 132 | gboolean g_simple_async_result_is_valid (GAsyncResult *result, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1262| GSimpleAsyncResult *res; # 1263| # 1264|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (self), # 1265| gcr_system_prompt_password_async), FALSE); # 1266| Error: COMPILER_WARNING (CWE-477): [#def58] gcr-4.4.0.1/gcr/gcr-system-prompt.c:1268:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated # 1268 | if (g_simple_async_result_propagate_error (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, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1266| # 1267| res = G_SIMPLE_ASYNC_RESULT (result); # 1268|-> if (g_simple_async_result_propagate_error (res, error)) # 1269| return FALSE; # 1270| Error: COMPILER_WARNING (CWE-477): [#def59] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_confirm_finish’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:1298:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 1298 | g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (self), # | ^~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 132 | gboolean g_simple_async_result_is_valid (GAsyncResult *result, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1296| # 1297| g_return_val_if_fail (GCR_IS_SYSTEM_PROMPT (self), FALSE); # 1298|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (self), # 1299| gcr_system_prompt_confirm_async), FALSE); # 1300| Error: COMPILER_WARNING (CWE-477): [#def60] gcr-4.4.0.1/gcr/gcr-system-prompt.c:1302:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated # 1302 | if (g_simple_async_result_propagate_error (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, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1300| # 1301| res = G_SIMPLE_ASYNC_RESULT (result); # 1302|-> if (g_simple_async_result_propagate_error (res, error)) # 1303| return FALSE; # 1304| Error: COMPILER_WARNING (CWE-477): [#def61] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_close_async’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:1579:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead # 1579 | res = g_simple_async_result_new (NULL, callback, user_data, # | ^~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here # 48 | GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object, # | ^~~~~~~~~~~~~~~~~~~~~~~~~ # 1577| g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable)); # 1578| # 1579|-> res = g_simple_async_result_new (NULL, callback, user_data, # 1580| gcr_system_prompt_close_async); # 1581| closure = call_closure_new (cancellable); Error: COMPILER_WARNING (CWE-477): [#def62] gcr-4.4.0.1/gcr/gcr-system-prompt.c:1585:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 1585 | g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_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, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1583| if (closure->context != NULL) # 1584| g_main_context_ref (closure->context); # 1585|-> g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_free); # 1586| # 1587| perform_close (self, res, closure->cancellable); Error: COMPILER_WARNING (CWE-477): [#def63] gcr-4.4.0.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_close_finish’ gcr-4.4.0.1/gcr/gcr-system-prompt.c:1613:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 1613 | g_return_val_if_fail (g_simple_async_result_is_valid (result, NULL, # | ^~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 132 | gboolean g_simple_async_result_is_valid (GAsyncResult *result, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1611| g_return_val_if_fail (error == NULL || *error == NULL, FALSE); # 1612| # 1613|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, NULL, # 1614| gcr_system_prompt_close_async), FALSE); # 1615| Error: COMPILER_WARNING (CWE-477): [#def64] gcr-4.4.0.1/gcr/gcr-system-prompt.c:1616:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated # 1616 | if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error)) # | ^~ /usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here # 116 | gboolean g_simple_async_result_propagate_error (GSimpleAsyncResult *simple, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1614| gcr_system_prompt_close_async), FALSE); # 1615| # 1616|-> if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error)) # 1617| return FALSE; # 1618| Error: COMPILER_WARNING (CWE-477): [#def65] gcr-4.4.0.1/gcr/test-ssh-askpass.c: scope_hint: In function ‘test_ssh_keygen’ gcr-4.4.0.1/gcr/test-ssh-askpass.c:102:9: warning[-Wdeprecated-declarations]: ‘g_spawn_check_exit_status’ is deprecated: Use 'g_spawn_check_wait_status' instead # 102 | g_spawn_check_exit_status (status, &error); # | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib.h:84: included_from: Included from here. gcr-4.4.0.1/gcr/gcr.h:29: included_from: Included from here. gcr-4.4.0.1/gcr/test-ssh-askpass.c:24: included_from: Included from here. /usr/include/glib-2.0/glib/gspawn.h:315:10: note: declared here # 315 | gboolean g_spawn_check_exit_status (gint wait_status, # | ^~~~~~~~~~~~~~~~~~~~~~~~~ # 100| g_main_context_iteration (NULL, TRUE); # 101| # 102|-> g_spawn_check_exit_status (status, &error); # 103| g_assert_cmpint (status, ==, 0); # 104| g_assert_no_error (error); Error: GCC_ANALYZER_WARNING (CWE-476): [#def66] gcr-4.4.0.1/redhat-linux-build/../egg/egg-asn1x.c:527:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’ gcr-4.4.0.1/redhat-linux-build/../egg/egg-asn1x.c:1236:1: enter_function: entry to ‘anode_decode_anything’ gcr-4.4.0.1/redhat-linux-build/../egg/egg-asn1x.c:1246:16: branch_true: following ‘true’ branch (when ‘tlv’ is non-NULL)... gcr-4.4.0.1/redhat-linux-build/../egg/egg-asn1x.c:1247:20: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../egg/egg-asn1x.c:1247:20: branch_true: following ‘true’ branch (when ‘node’ is NULL)... gcr-4.4.0.1/redhat-linux-build/../egg/egg-asn1x.c:1248:32: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../egg/egg-asn1x.c:1248:32: call_function: calling ‘anode_failure’ from ‘anode_decode_anything’ # 525| anode_failure (GNode *node, const gchar *failure) # 526| { # 527|-> Anode *an = node->data; # 528| const gchar *prefix = an->def->name; # 529| if (!prefix && an->join) Error: COMPILER_WARNING (CWE-477): [#def67] gcr-4.4.0.1/redhat-linux-build/../egg/egg-file-tracker.c:168:17: warning[-Wdeprecated-declarations]: ‘g_pattern_match_string’ is deprecated: Use 'g_pattern_spec_match_string' instead # 166| if (filename[0] == '.') # 167| continue; # 168|-> if (self->include && !g_pattern_match_string (self->include, filename)) # 169| continue; # 170| if (self->exclude && g_pattern_match_string (self->exclude, filename)) Error: COMPILER_WARNING (CWE-477): [#def68] gcr-4.4.0.1/redhat-linux-build/../egg/egg-file-tracker.c:170:17: warning[-Wdeprecated-declarations]: ‘g_pattern_match_string’ is deprecated: Use 'g_pattern_spec_match_string' instead # 168| if (self->include && !g_pattern_match_string (self->include, filename)) # 169| continue; # 170|-> if (self->exclude && g_pattern_match_string (self->exclude, filename)) # 171| continue; # 172| Error: GCC_ANALYZER_WARNING (CWE-688): [#def69] gcr-4.4.0.1/redhat-linux-build/../egg/test-padding.c:51:9: warning[-Wanalyzer-null-argument]: use of NULL ‘output’ where non-null expected gcr-4.4.0.1/redhat-linux-build/../egg/test-padding.c:198:1: enter_function: entry to ‘test_pkcs7_padding_invalid_different’ gcr-4.4.0.1/redhat-linux-build/../egg/test-padding.c:201:9: call_function: calling ‘check_padding’ from ‘test_pkcs7_padding_invalid_different’ # 49| g_assert (result != NULL); # 50| egg_assert_cmpsize (n_output, ==, n_result); # 51|-> g_assert (memcmp (output, result, n_output) == 0); # 52| g_free (result); # 53| Error: GCC_ANALYZER_WARNING (CWE-476): [#def70] gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2209:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2197:1: enter_function: entry to ‘gck_attributes_unref’ gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2207:29: branch_true: following ‘true’ branch... gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2208:32: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2208:32: call_function: calling ‘gck_attributes_at’ from ‘gck_attributes_unref’ gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2208:32: return_function: returning to ‘gck_attributes_unref’ from ‘gck_attributes_at’ gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2207:29: branch_true: following ‘true’ branch... gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2208:32: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2208:32: call_function: calling ‘gck_attributes_at’ from ‘gck_attributes_unref’ gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2208:32: return_function: returning to ‘gck_attributes_unref’ from ‘gck_attributes_at’ gcr-4.4.0.1/redhat-linux-build/../gck/gck-attributes.c:2209:29: danger: dereference of NULL ‘gck_attributes_at(attrs, i)’ # 2207| for (i = 0; i < attrs_->count; ++i) { # 2208| attr = gck_attributes_at (attrs_, i); # 2209|-> if (attr->value) # 2210| value_unref (attr->value); # 2211| } Error: GCC_ANALYZER_WARNING (CWE-688): [#def71] gcr-4.4.0.1/redhat-linux-build/../gck/gck-mock.c:326:21: warning[-Wanalyzer-null-argument]: use of NULL ‘password’ where non-null expected gcr-4.4.0.1/redhat-linux-build/../gck/gck-mock.c:322:1: enter_function: entry to ‘gck_mock_module_set_pin’ gcr-4.4.0.1/redhat-linux-build/../gck/gck-mock.c:326:21: danger: argument 1 (‘password’) NULL where non-null expected #argument 1 of ‘__builtin_strlen’ must be non-null # 324| g_free (the_pin); # 325| the_pin = g_strdup (password); # 326|-> n_the_pin = strlen (password); # 327| } # 328| Error: GCC_ANALYZER_WARNING (CWE-457): [#def72] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-info-access.c:337:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘descriptions’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-info-access.c:281:9: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-info-access.c:283:15: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-info-access.c:284:12: branch_true: following ‘true’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-info-access.c:285:17: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-info-access.c:337:12: danger: use of uninitialized value ‘descriptions’ here # 335| # 336| out: # 337|-> if (descriptions != NULL) # 338| g_ptr_array_unref (descriptions); # 339| if (asn != NULL) Error: GCC_ANALYZER_WARNING (CWE-457): [#def73] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:180:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘issuer_names’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:150:9: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:152:15: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:153:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:161:16: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:162:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:165:16: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:166:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:175:16: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:176:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:180:13: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:180:13: danger: use of uninitialized value ‘issuer_names’ here # 178| } # 179| # 180|-> if ((issuer_names == NULL) != (serial_nr == NULL)) { # 181| g_set_error_literal (error, # 182| GCR_CERTIFICATE_EXTENSION_PARSE_ERROR, Error: GCC_ANALYZER_WARNING (CWE-457): [#def74] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:202:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘issuer_names’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:150:9: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:152:15: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:153:12: branch_true: following ‘true’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:154:17: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-authority-key-identifier.c:202:9: danger: use of uninitialized value ‘issuer_names’ here # 200| out: # 201| g_clear_pointer (&keyid, g_bytes_unref); # 202|-> g_clear_object (&issuer_names); # 203| g_clear_pointer (&serial_nr, g_bytes_unref); # 204| g_clear_pointer (&asn, egg_asn1x_destroy); Error: GCC_ANALYZER_WARNING (CWE-457): [#def75] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-crl-distribution-points.c:131:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘oid’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-crl-distribution-points.c:123:9: branch_true: following ‘true’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-crl-distribution-points.c:124:9: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-crl-distribution-points.c:124:9: branch_true: following ‘true’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-crl-distribution-points.c:127:16: branch_true: following ‘true’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-crl-distribution-points.c:129:29: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-crl-distribution-points.c:131:22: danger: use of uninitialized value ‘oid’ here # 129| const char *display = (const char *) value; # 130| # 131|-> if ((g_ascii_strcasecmp (g_quark_to_string (oid), part) == 0) || # 132| (g_ascii_strcasecmp (egg_oid_get_name (oid), part) == 0)) { # 133| return g_strdup (display); Error: GCC_ANALYZER_WARNING (CWE-457): [#def76] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-subject-alt-name.c:174:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘names’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-subject-alt-name.c:154:12: branch_true: following ‘true’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-subject-alt-name.c:155:17: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-certificate-extension-subject-alt-name.c:174:9: danger: use of uninitialized value ‘names’ here # 172| # 173| out: # 174|-> g_clear_object (&names); # 175| if (asn != NULL) # 176| egg_asn1x_destroy (asn); Error: GCC_ANALYZER_WARNING (CWE-476): [#def77] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-gnupg-records.c:47:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-gnupg-records.c:31:1: enter_function: entry to ‘_gcr_gnupg_records_parse_user_id’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-gnupg-records.c:47:16: danger: dereference of NULL ‘src’ # 45| x = tail = src = g_strdup (user_id); # 46| # 47|-> while (*src) { # 48| if (in_email) { # 49| /* Not legal but anyway. */ Error: COMPILER_WARNING (CWE-477): [#def78] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:387:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 385| { # 386| GSimpleAsyncResult *res = data; # 387|-> g_simple_async_result_complete (res); # 388| return FALSE; # 389| } Error: COMPILER_WARNING (CWE-477): [#def79] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:396:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 394| GSimpleAsyncResult *res = data; # 395| GcrPrompt *prompt = GCR_PROMPT (g_async_result_get_source_object (data)); # 396|-> g_simple_async_result_complete (res); # 397| gcr_prompt_close (prompt); # 398| g_object_unref (prompt); Error: COMPILER_WARNING (CWE-477): [#def80] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:428:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead # 426| g_mutex_unlock (running->mutex); # 427| # 428|-> res = g_simple_async_result_new (G_OBJECT (prompt), callback, user_data, # 429| gcr_mock_prompt_confirm_async); # 430| Error: COMPILER_WARNING (CWE-477): [#def81] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:433:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated # 431| if (response == NULL) { # 432| g_critical ("password prompt requested, but not expected"); # 433|-> g_simple_async_result_set_op_res_gboolean (res, FALSE); # 434| # 435| } else if (response->close) { Error: COMPILER_WARNING (CWE-477): [#def82] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:437:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated # 435| } else if (response->close) { # 436| complete_func = on_timeout_complete_and_close; # 437|-> g_simple_async_result_set_op_res_gboolean (res, FALSE); # 438| # 439| } else if (response->password) { Error: COMPILER_WARNING (CWE-477): [#def83] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:441:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated # 439| } else if (response->password) { # 440| g_critical ("confirmation prompt requested, but password prompt expected"); # 441|-> g_simple_async_result_set_op_res_gboolean (res, FALSE); # 442| # 443| } else { Error: COMPILER_WARNING (CWE-477): [#def84] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:445:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated # 443| } else { # 444| prompt_set_or_check_properties (self, response->properties); # 445|-> g_simple_async_result_set_op_res_gboolean (res, response->proceed); # 446| } # 447| Error: COMPILER_WARNING (CWE-477): [#def85] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:466:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 464| GError **error) # 465| { # 466|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (prompt), # 467| gcr_mock_prompt_confirm_async), GCR_PROMPT_REPLY_CANCEL); # 468| Error: COMPILER_WARNING (CWE-477): [#def86] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:469:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gboolean’ is deprecated # 467| gcr_mock_prompt_confirm_async), GCR_PROMPT_REPLY_CANCEL); # 468| # 469|-> return g_simple_async_result_get_op_res_gboolean (G_SIMPLE_ASYNC_RESULT (result)) ? # 470| GCR_PROMPT_REPLY_CONTINUE : GCR_PROMPT_REPLY_CANCEL; # 471| } Error: COMPILER_WARNING (CWE-477): [#def87] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:507:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead # 505| g_mutex_unlock (running->mutex); # 506| # 507|-> res = g_simple_async_result_new (G_OBJECT (prompt), callback, user_data, # 508| gcr_mock_prompt_password_async); # 509| Error: COMPILER_WARNING (CWE-477): [#def88] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:512:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 510| if (response == NULL) { # 511| g_critical ("password prompt requested, but not expected"); # 512|-> g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # 513| # 514| } else if (response->close) { Error: COMPILER_WARNING (CWE-477): [#def89] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:515:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 513| # 514| } else if (response->close) { # 515|-> g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # 516| complete_func = on_timeout_complete_and_close; # 517| Error: COMPILER_WARNING (CWE-477): [#def90] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:520:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 518| } else if (!response->password) { # 519| g_critical ("password prompt requested, but confirmation prompt expected"); # 520|-> g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # 521| # 522| } else if (!response->proceed) { Error: COMPILER_WARNING (CWE-477): [#def91] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:524:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 522| } else if (!response->proceed) { # 523| prompt_set_or_check_properties (self, response->properties); # 524|-> g_simple_async_result_set_op_res_gpointer (res, NULL, NULL); # 525| # 526| } else { Error: COMPILER_WARNING (CWE-477): [#def92] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:529:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 527| ensure_password_strength (self, response->password); # 528| prompt_set_or_check_properties (self, response->properties); # 529|-> g_simple_async_result_set_op_res_gpointer (res, response->password, g_free); # 530| response->password = NULL; # 531| } Error: COMPILER_WARNING (CWE-477): [#def93] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:553:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 551| GError **error) # 552| { # 553|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (prompt), # 554| gcr_mock_prompt_password_async), NULL); # 555| Error: COMPILER_WARNING (CWE-477): [#def94] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-mock-prompter.c:556:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 554| gcr_mock_prompt_password_async), NULL); # 555| # 556|-> return g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result)); # 557| # 558| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def95] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-record.c:836:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-record.c:824:1: enter_function: entry to ‘_gcr_records_parse_colons’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-record.c:833:17: call_function: calling ‘strnsplit’ from ‘_gcr_records_parse_colons’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-record.c:833:17: return_function: returning to ‘_gcr_records_parse_colons’ from ‘strnsplit’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-record.c:836:26: release_memory: ‘0’ is NULL gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-record.c:836:21: danger: dereference of NULL ‘strnsplit(data, (long unsigned int)n_data, 10) + (long unsigned int)i * 8’ # 834| result = g_ptr_array_new_with_free_func (_gcr_record_free); # 835| # 836|-> for (i = 0; lines[i] != NULL; i++) { # 837| block = record_block_take (lines[i], strlen (lines[i])); # 838| record = take_and_parse_internal (block, ':', TRUE); Error: GCC_ANALYZER_WARNING (CWE-457): [#def96] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:351:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n_iv’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:328:1: enter_function: entry to ‘perform_decrypt’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:340:9: branch_true: following ‘true’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:342:14: branch_true: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:342:14: call_function: calling ‘key_file_get_base64’ from ‘perform_decrypt’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:342:14: return_function: returning to ‘perform_decrypt’ from ‘key_file_get_base64’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:344:17: call_function: calling ‘key_file_get_base64’ from ‘perform_decrypt’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:344:17: return_function: returning to ‘perform_decrypt’ from ‘key_file_get_base64’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:345:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:351:15: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-secret-exchange.c:351:15: danger: use of uninitialized value ‘n_iv’ here # 349| } # 350| # 351|-> ret = (klass->decrypt_transport_data) (self, egg_secure_realloc, value, n_value, # 352| iv, n_iv, &result, &n_result); # 353| Error: COMPILER_WARNING (CWE-477): [#def97] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-process.c:150:9: warning[-Wdeprecated-declarations]: ‘g_spawn_check_exit_status’ is deprecated: Use 'g_spawn_check_wait_status' instead # 148| self->child_id = 0; # 149| # 150|-> if (!g_spawn_check_exit_status (status, &error)) { # 151| g_message ("ssh-agent: %s", error->message); # 152| g_error_free (error); Error: COMPILER_WARNING (CWE-477): [#def98] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-service.c:285:9: warning[-Wdeprecated-declarations]: ‘g_spawn_check_exit_status’ is deprecated: Use 'g_spawn_check_wait_status' instead # 283| NULL, &standard_error, &status, &error)) { # 284| g_warning ("couldn't run %s: %s", argv[0], error->message); # 285|-> } else if (!g_spawn_check_exit_status (status, &error)) { # 286| g_message ("the %s command failed: %s", argv[0], error->message); # 287| g_printerr ("%s", _gcr_ssh_agent_canon_error (standard_error)); Error: GCC_ANALYZER_WARNING (CWE-457): [#def99] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-test.c:216:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘comment’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-test.c:207:1: enter_function: entry to ‘prepare_remove_identity’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-test.c:215:22: call_function: calling ‘public_key_from_file’ from ‘prepare_remove_identity’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-test.c:215:22: return_function: returning to ‘prepare_remove_identity’ from ‘public_key_from_file’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-test.c:216:9: danger: use of uninitialized value ‘comment’ here # 214| # 215| public_key = public_key_from_file (SRCDIR "/gcr/fixtures/ssh-agent/id_rsa_plain.pub", &comment); # 216|-> g_free (comment); # 217| blob = g_bytes_get_data (public_key, &length); # 218| Error: GCC_ANALYZER_WARNING (CWE-457): [#def100] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-test.c:289:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘comment’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-test.c:280:1: enter_function: entry to ‘prepare_sign_request’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-test.c:288:22: call_function: calling ‘public_key_from_file’ from ‘prepare_sign_request’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-test.c:288:22: return_function: returning to ‘prepare_sign_request’ from ‘public_key_from_file’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-agent-test.c:289:9: danger: use of uninitialized value ‘comment’ here # 287| # 288| public_key = public_key_from_file (SRCDIR "/gcr/fixtures/ssh-agent/id_rsa_plain.pub", &comment); # 289|-> g_free (comment); # 290| blob = g_bytes_get_data (public_key, &length); # 291| Error: GCC_ANALYZER_WARNING (CWE-775): [#def101] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:285:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*(GcrSshAskpass *)obj.fd’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:266:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:271:42: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:274:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:279:14: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:279:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:282:9: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:285:12: danger: ‘*(GcrSshAskpass *)obj.fd’ leaks here # 283| addr.sun_family = AF_UNIX; # 284| g_strlcpy (addr.sun_path, self->socket, sizeof (addr.sun_path)); # 285|-> if (bind (self->fd, (struct sockaddr*) &addr, sizeof (addr)) < 0) { # 286| g_warning ("couldn't bind to askpass socket: %s: %s", self->socket, g_strerror (errno)); # 287| return; Error: GCC_ANALYZER_WARNING (CWE-775): [#def102] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:290:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*(GcrSshAskpass *)obj.fd’ gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:266:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:271:42: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:274:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:279:14: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:279:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:282:9: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:285:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:290:21: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:290:12: danger: ‘*(GcrSshAskpass *)obj.fd’ leaks here # 288| } # 289| # 290|-> if (listen (self->fd, 128) < 0) { # 291| g_warning ("couldn't listen on askpass socket: %s: %s", self->socket, g_strerror (errno)); # 292| return; Error: GCC_ANALYZER_WARNING (CWE-775): [#def103] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:295:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:266:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:271:42: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:274:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:279:14: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:279:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:282:9: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:285:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:290:21: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:290:12: branch_false: following ‘false’ branch... gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:295:9: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-ssh-askpass.c:295:9: danger: leaks here # 293| } # 294| # 295|-> g_debug ("listening for " GCR_SSH_ASKPASS_BIN " at: %s", self->socket); # 296| # 297| self->source = g_unix_fd_add (self->fd, G_IO_IN, askpass_accept, self); Error: COMPILER_WARNING (CWE-477): [#def104] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:434:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 432| if (user_data) { # 433| async = G_SIMPLE_ASYNC_RESULT (user_data); # 434|-> g_simple_async_result_complete (async); # 435| g_object_unref (async); # 436| } Error: COMPILER_WARNING (CWE-477): [#def105] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:458:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 456| res = g_object_ref (self->pv->pending); # 457| g_clear_object (&self->pv->pending); # 458|-> closure = g_simple_async_result_get_op_res_gpointer (res); # 459| g_cancellable_cancel (closure->cancellable); # 460| g_simple_async_result_complete_in_idle (res); Error: COMPILER_WARNING (CWE-477): [#def106] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:460:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated # 458| closure = g_simple_async_result_get_op_res_gpointer (res); # 459| g_cancellable_cancel (closure->cancellable); # 460|-> g_simple_async_result_complete_in_idle (res); # 461| g_object_unref (res); # 462| } Error: COMPILER_WARNING (CWE-477): [#def107] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:495:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated # 493| # 494| if (!called && async) # 495|-> g_simple_async_result_complete_in_idle (async); # 496| # 497| /* Emit the signal if necessary, after closed */ Error: COMPILER_WARNING (CWE-477): [#def108] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:663:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 661| res = g_object_ref (self->pv->pending); # 662| g_clear_object (&self->pv->pending); # 663|-> g_simple_async_result_complete (res); # 664| g_object_unref (res); # 665| } Error: COMPILER_WARNING (CWE-477): [#def109] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:789:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 787| { # 788| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data)); # 789|-> CallClosure *call = g_simple_async_result_get_op_res_gpointer (user_data); # 790| # 791| if (self->pv->prompt_owner) { Error: COMPILER_WARNING (CWE-477): [#def110] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:808:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 806| GSimpleAsyncResult *res = G_SIMPLE_ASYNC_RESULT (user_data); # 807| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data)); # 808|-> CallClosure *closure = g_simple_async_result_get_op_res_gpointer (res); # 809| GError *error = NULL; # 810| Error: COMPILER_WARNING (CWE-477): [#def111] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:838:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated # 836| perform_init_async (self, res); # 837| } else { # 838|-> g_simple_async_result_take_error (res, error); # 839| g_simple_async_result_complete (res); # 840| } Error: COMPILER_WARNING (CWE-477): [#def112] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:839:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 837| } else { # 838| g_simple_async_result_take_error (res, error); # 839|-> g_simple_async_result_complete (res); # 840| } # 841| Error: COMPILER_WARNING (CWE-477): [#def113] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:872:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated # 870| self->pv->prompter_bus_name, egg_error_message (error)); # 871| # 872|-> g_simple_async_result_take_error (res, error); # 873| g_simple_async_result_complete (res); # 874| } Error: COMPILER_WARNING (CWE-477): [#def114] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:873:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 871| # 872| g_simple_async_result_take_error (res, error); # 873|-> g_simple_async_result_complete (res); # 874| } # 875| Error: COMPILER_WARNING (CWE-477): [#def115] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:884:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 882| { # 883| GSimpleAsyncResult *res = G_SIMPLE_ASYNC_RESULT (user_data); # 884|-> CallClosure *closure = g_simple_async_result_get_op_res_gpointer (res); # 885| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data)); # 886| Error: COMPILER_WARNING (CWE-477): [#def116] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:894:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated # 892| gcr_system_prompt_close_async (self, NULL, NULL, NULL); # 893| # 894|-> g_simple_async_result_set_error (res, GCR_SYSTEM_PROMPT_ERROR, # 895| GCR_SYSTEM_PROMPT_IN_PROGRESS, # 896| _("Another prompt is already in progress")); Error: COMPILER_WARNING (CWE-477): [#def117] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:897:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 895| GCR_SYSTEM_PROMPT_IN_PROGRESS, # 896| _("Another prompt is already in progress")); # 897|-> g_simple_async_result_complete (res); # 898| # 899| g_object_unref (self); Error: COMPILER_WARNING (CWE-477): [#def118] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:908:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 906| { # 907| GSimpleAsyncResult *async = G_SIMPLE_ASYNC_RESULT (user_data); # 908|-> CallClosure *call = g_simple_async_result_get_op_res_gpointer (async); # 909| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data)); # 910| Error: COMPILER_WARNING (CWE-477): [#def119] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:915:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated # 913| call->waiting = NULL; # 914| # 915|-> g_simple_async_result_set_error (async, G_IO_ERROR, G_IO_ERROR_CANCELLED, # 916| _("The operation was cancelled")); # 917| Error: COMPILER_WARNING (CWE-477): [#def120] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:929:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 927| GSimpleAsyncResult *res) # 928| { # 929|-> CallClosure *closure = g_simple_async_result_get_op_res_gpointer (res); # 930| # 931| g_main_context_push_thread_default (closure->context); Error: COMPILER_WARNING (CWE-477): [#def121] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:990:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead # 988| CallClosure *closure; # 989| # 990|-> res = g_simple_async_result_new (G_OBJECT (self), callback, user_data, # 991| gcr_system_prompt_real_init_async); # 992| closure = call_closure_new (cancellable); Error: COMPILER_WARNING (CWE-477): [#def122] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:996:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 994| if (closure->context) # 995| g_main_context_ref (closure->context); # 996|-> g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_free); # 997| # 998| perform_init_async (self, res); Error: COMPILER_WARNING (CWE-477): [#def123] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1011:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 1009| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (initable); # 1010| # 1011|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (self), # 1012| gcr_system_prompt_real_init_async), FALSE); # 1013| Error: COMPILER_WARNING (CWE-477): [#def124] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1014:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated # 1012| gcr_system_prompt_real_init_async), FALSE); # 1013| # 1014|-> if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error)) # 1015| return FALSE; # 1016| Error: COMPILER_WARNING (CWE-477): [#def125] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1126:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_get_op_res_gpointer’ is deprecated # 1124| GSimpleAsyncResult *res = G_SIMPLE_ASYNC_RESULT (user_data); # 1125| GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data)); # 1126|-> CallClosure *call = g_simple_async_result_get_op_res_gpointer (res); # 1127| GError *error = NULL; # 1128| GVariant *retval; Error: COMPILER_WARNING (CWE-477): [#def126] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1133:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated # 1131| if (error != NULL) { # 1132| self->pv->pending = NULL; # 1133|-> g_simple_async_result_take_error (res, error); # 1134| g_simple_async_result_complete (res); # 1135| } else { Error: COMPILER_WARNING (CWE-477): [#def127] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1134:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated # 1132| self->pv->pending = NULL; # 1133| g_simple_async_result_take_error (res, error); # 1134|-> g_simple_async_result_complete (res); # 1135| } else { # 1136| g_assert (call->waiting == NULL); Error: COMPILER_WARNING (CWE-477): [#def128] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1171:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead # 1169| } # 1170| # 1171|-> res = g_simple_async_result_new (G_OBJECT (self), callback, user_data, source_tag); # 1172| closure = call_closure_new (cancellable); # 1173| g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_free); Error: COMPILER_WARNING (CWE-477): [#def129] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1173:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 1171| res = g_simple_async_result_new (G_OBJECT (self), callback, user_data, source_tag); # 1172| closure = call_closure_new (cancellable); # 1173|-> g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_free); # 1174| # 1175| if (self->pv->closed) { Error: COMPILER_WARNING (CWE-477): [#def130] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1178:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated # 1176| g_free (self->pv->last_response); # 1177| self->pv->last_response = g_strdup (GCR_DBUS_PROMPT_REPLY_NONE); # 1178|-> g_simple_async_result_complete_in_idle (res); # 1179| g_object_unref (res); # 1180| return; Error: COMPILER_WARNING (CWE-477): [#def131] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1264:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 1262| GSimpleAsyncResult *res; # 1263| # 1264|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (self), # 1265| gcr_system_prompt_password_async), FALSE); # 1266| Error: COMPILER_WARNING (CWE-477): [#def132] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1268:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated # 1266| # 1267| res = G_SIMPLE_ASYNC_RESULT (result); # 1268|-> if (g_simple_async_result_propagate_error (res, error)) # 1269| return FALSE; # 1270| Error: COMPILER_WARNING (CWE-477): [#def133] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1298:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 1296| # 1297| g_return_val_if_fail (GCR_IS_SYSTEM_PROMPT (self), FALSE); # 1298|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (self), # 1299| gcr_system_prompt_confirm_async), FALSE); # 1300| Error: COMPILER_WARNING (CWE-477): [#def134] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1302:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated # 1300| # 1301| res = G_SIMPLE_ASYNC_RESULT (result); # 1302|-> if (g_simple_async_result_propagate_error (res, error)) # 1303| return FALSE; # 1304| Error: COMPILER_WARNING (CWE-477): [#def135] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1579:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead # 1577| g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable)); # 1578| # 1579|-> res = g_simple_async_result_new (NULL, callback, user_data, # 1580| gcr_system_prompt_close_async); # 1581| closure = call_closure_new (cancellable); Error: COMPILER_WARNING (CWE-477): [#def136] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1585:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gpointer’ is deprecated # 1583| if (closure->context != NULL) # 1584| g_main_context_ref (closure->context); # 1585|-> g_simple_async_result_set_op_res_gpointer (res, closure, call_closure_free); # 1586| # 1587| perform_close (self, res, closure->cancellable); Error: COMPILER_WARNING (CWE-477): [#def137] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1613:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated # 1611| g_return_val_if_fail (error == NULL || *error == NULL, FALSE); # 1612| # 1613|-> g_return_val_if_fail (g_simple_async_result_is_valid (result, NULL, # 1614| gcr_system_prompt_close_async), FALSE); # 1615| Error: COMPILER_WARNING (CWE-477): [#def138] gcr-4.4.0.1/redhat-linux-build/../gcr/gcr-system-prompt.c:1616:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated # 1614| gcr_system_prompt_close_async), FALSE); # 1615| # 1616|-> if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error)) # 1617| return FALSE; # 1618| Error: GCC_ANALYZER_WARNING (CWE-688): [#def139] gcr-4.4.0.1/redhat-linux-build/../gcr/test-ssh-agent-preload.c:140:9: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected gcr-4.4.0.1/redhat-linux-build/../gcr/test-ssh-agent-preload.c:139:9: branch_false: following ‘false’ branch (when ‘p’ is NULL)... gcr-4.4.0.1/redhat-linux-build/../gcr/test-ssh-agent-preload.c:139:9: branch_false: ...to here gcr-4.4.0.1/redhat-linux-build/../gcr/test-ssh-agent-preload.c:140:9: danger: argument 1 (‘p’) NULL where non-null expected #argument 1 of ‘__builtin_memcpy’ must be non-null # 138| p = strchr (contents, '\n'); # 139| g_assert_nonnull (p); # 140|-> memcpy (p, " " COMMENT "\n", strlen (COMMENT) + 2); # 141| error = NULL; # 142| ret = g_file_set_contents (path, contents, length + strlen (COMMENT), &error); Error: COMPILER_WARNING (CWE-477): [#def140] gcr-4.4.0.1/redhat-linux-build/../gcr/test-ssh-askpass.c:102:9: warning[-Wdeprecated-declarations]: ‘g_spawn_check_exit_status’ is deprecated: Use 'g_spawn_check_wait_status' instead # 100| g_main_context_iteration (NULL, TRUE); # 101| # 102|-> g_spawn_check_exit_status (status, &error); # 103| g_assert_cmpint (status, ==, 0); # 104| g_assert_no_error (error);
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-53.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | gcr-4.4.0.1-1.fc43 |
store-results-to | /tmp/tmpygn30dyg/gcr-4.4.0.1-1.fc43.tar.xz |
time-created | 2025-04-25 12:36:25 |
time-finished | 2025-04-25 12:39:00 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpygn30dyg/gcr-4.4.0.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpygn30dyg/gcr-4.4.0.1-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |