Task #1040 - gcr-4.2.1-1.fc40/scan-results.err
back to task #1040download
Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-armor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-asn1x.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): gcr-4.2.1-build/gcr-4.2.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: CPPCHECK_WARNING (CWE-457): gcr-4.2.1-build/gcr-4.2.1/egg/egg-asn1x.c:2210: error[legacyUninitvar]: Uninitialized variable: ret # 2208| g_return_val_if_reached (FALSE); # 2209| # 2210|-> if (!ret) # 2211| return anode_failure (node, "invalid time content"); # 2212| Error: CPPCHECK_WARNING (CWE-457): gcr-4.2.1-build/gcr-4.2.1/egg/egg-asn1x.c:2435: error[legacyUninitvar]: Uninitialized variable: value # 2433| g_return_val_if_reached (FALSE); # 2434| # 2435|-> anode_write_boolean (value, NULL, &len); # 2436| data = g_malloc (len); # 2437| anode_write_boolean (value, data, &len); Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-buffer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-decimal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-dh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-dn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-file-tracker.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/egg/egg-file-tracker.c: scope_hint: In function ‘update_directory’ gcr-4.2.1-build/gcr-4.2.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.2.1-build/gcr-4.2.1/egg/egg-file-tracker.h:26: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.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): gcr-4.2.1-build/gcr-4.2.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: gcr-4.2.1-build/gcr-4.2.1/egg/egg-hex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-hkdf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/egg/egg-libgcrypt.c: scope_hint: In function ‘egg_libgcrypt_initialize’ gcr-4.2.1-build/gcr-4.2.1/egg/egg-libgcrypt.c:71:25: warning[-Wdeprecated-declarations]: ‘gcry_set_log_handler’ is deprecated gcr-4.2.1-build/gcr-4.2.1/egg/egg-libgcrypt.c:27: included_from: Included from here. /usr/include/gcrypt.h:2025:6: note: declared here # 69| gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); # 70| gcry_check_version (LIBGCRYPT_VERSION); # 71|-> gcry_set_log_handler (log_handler, NULL); # 72| gcry_set_outofcore_handler (no_mem_handler, NULL); # 73| gcry_set_fatalerror_handler (fatal_handler, NULL); Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-openssl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-padding.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-secure-memory.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): gcr-4.2.1-build/gcr-4.2.1/egg/egg-secure-memory.c: scope_hint: In function ‘egg_secure_strndup_full’ gcr-4.2.1-build/gcr-4.2.1/egg/egg-secure-memory.c:1346:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 1344| len = length + 1; # 1345| res = (char *)egg_secure_alloc_full (tag, len, options); # 1346|-> memcpy (res, str, len); # 1347| return res; # 1348| } Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-symkey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-symkey.c:883:9: warning[deadcode.DeadStores]: Although the value stored to 'mode' is used in the enclosing expression, the value is never actually read from 'mode' # 881| goto done; # 882| # 883|-> algo = mode = 0; # 884| # 885| /* Read in all the encryption type */ Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/egg-symkey.c:1024:2: warning[unix.Malloc]: Attempt to free released memory # 1022| if (salt != NULL) # 1023| g_bytes_unref (salt); # 1024|-> g_free (iv); # 1025| egg_secure_free (key); # 1026| egg_asn1x_destroy (asn); Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/test-asn1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/test-dh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/test-hkdf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/test-openssl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/test-padding.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/test-padding.c:48:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 46| g_assert (result != NULL); # 47| egg_assert_cmpsize (n_output, ==, n_result); # 48|-> g_assert (memcmp (output, result, n_output) == 0); # 49| g_free (result); # 50| Error: GCC_ANALYZER_WARNING (CWE-688): /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. gcr-4.2.1-build/gcr-4.2.1/egg/egg-padding.h:23: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/egg/test-padding.c:25: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/egg/test-padding.c: scope_hint: In function ‘check_padding’ gcr-4.2.1-build/gcr-4.2.1/egg/test-padding.c:48:19: warning[-Wanalyzer-null-argument]: use of NULL ‘output’ where non-null expected /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’ gcr-4.2.1-build/gcr-4.2.1/egg/test-padding.c:48:9: 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’ gcr-4.2.1-build/gcr-4.2.1/egg/test-padding.c:46:9: 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’ gcr-4.2.1-build/gcr-4.2.1/egg/test-padding.c:46:9: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib.h:89: included_from: Included from here. /usr/include/glib-2.0/glib/gtestutils.h:60:75: note: in definition of macro ‘g_assert_cmpuint’ gcr-4.2.1-build/gcr-4.2.1/egg/test-padding.c:47:9: note: in expansion of macro ‘egg_assert_cmpsize’ /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’ gcr-4.2.1-build/gcr-4.2.1/egg/test-padding.c:48:9: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here. /usr/include/string.h:64:12: note: argument 1 of ‘memcmp’ must be non-null # 46| g_assert (result != NULL); # 47| egg_assert_cmpsize (n_output, ==, n_result); # 48|-> g_assert (memcmp (output, result, n_output) == 0); # 49| g_free (result); # 50| Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/egg/test-secmem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/gck-attributes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): gcr-4.2.1-build/gcr-4.2.1/gck/gck-attributes.c: scope_hint: In function ‘gck_attributes_unref.part.0’ gcr-4.2.1-build/gcr-4.2.1/gck/gck-attributes.c:2209:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /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. gcr-4.2.1-build/gcr-4.2.1/gck/gck.h:26: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gck/gck-attributes.c:25: included_from: Included from here. /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gck/gck-attributes.c:2041:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gck/gck-attributes.c:2042:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gck/gck-attributes.c:2042:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gck/gck-attributes.c:2041:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gck/gck-attributes.c:2042:9: note: in expansion of macro ‘g_return_val_if_fail’ # 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: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/gck-call.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/gck-enumerator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/gck-mock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): gcr-4.2.1-build/gcr-4.2.1/gck/gck-mock.c: scope_hint: In function ‘gck_mock_module_set_pin’ gcr-4.2.1-build/gcr-4.2.1/gck/gck-mock.c:326:21: warning[-Wanalyzer-null-argument]: use of NULL ‘password’ 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. gcr-4.2.1-build/gcr-4.2.1/gck/gck.h:26: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gck/gck-mock.c:22: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gck/gck-mock.c:325:19: note: in expansion of macro ‘g_strdup’ gcr-4.2.1-build/gcr-4.2.1/gck/gck-mock.c: scope_hint: In function ‘gck_mock_module_set_pin’ <built-in>: note: 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: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/gck-modules.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/gck-object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/gck-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/gck-slot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/gck-uri.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/test-gck-attributes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/test-gck-crypto.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/test-gck-enumerator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/test-gck-module.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/test-gck-object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/test-gck-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/test-gck-slot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gck/test-gck-uri.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/frob-parser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-certificate-chain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): gcr-4.2.1-build/gcr-4.2.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: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-certificate-chain.c:336:3: warning[core.uninitialized.Assign]: The expression is an uninitialized value. The computed value will also be garbage # 334| # 335| g_ptr_array_add (pv->certificates, certificate); # 336|-> ++length; # 337| # 338| /* See if this certificate is an anchor */ Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-certificate-extensions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-certificate-request.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-certificate-request.c:613:2: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value # 611| } # 612| # 613|-> _gcr_key_mechanisms_check_async (closure->request->private_key, # 614| mechanisms, n_mechanisms, CKA_SIGN, # 615| cancellable, on_mechanism_check, Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-certificate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-certificate.c:1141: error[legacyUninitvar]: Uninitialized variable: label # 1139| display = g_strdup (""); # 1140| # 1141|-> _gcr_certificate_section_new_field_take_value (section, label, g_steal_pointer (&display)); # 1142| g_clear_pointer (&label, g_free); # 1143| } Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-gnupg-importer.c:127:9: warning[core.NullDereference]: Array access (from variable 'line') results in a null pointer dereference # 125| } # 126| # 127|-> while (line[0] && g_ascii_isspace (line[0])) # 128| line++; # 129| Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-gnupg-process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-gnupg-records.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-gnupg-records.c: scope_hint: In function ‘_gcr_gnupg_records_parse_user_id’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-gnupg-records.c:47:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’ /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. /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.2.1-build/gcr-4.2.1/gcr/gcr-gnupg-records.h:23: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-gnupg-records.c:22: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-gnupg-records.c:45:26: note: in expansion of macro ‘g_strdup’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-gnupg-records.c: scope_hint: In function ‘_gcr_gnupg_records_parse_user_id’ # 45| x = tail = src = g_strdup (user_id); # 46| # 47|-> while (*src) { # 48| if (in_email) { # 49| /* Not legal but anyway. */ Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-importer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-key-mechanisms.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘on_timeout_complete’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:387:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated /usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gck/gck.h:28: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-types.h:40: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-prompt.h:29: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompter.h:29: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.h:29: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.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 # 385| { # 386| GSimpleAsyncResult *res = data; # 387|-> g_simple_async_result_complete (res); # 388| return FALSE; # 389| } Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘on_timeout_complete_and_close’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:396:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_confirm_async’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:428:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:433:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:85:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:437:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:85:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:441:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:85:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:445:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_op_res_gboolean’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:85:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_confirm_finish’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:466:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:469:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_password_async’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:507:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:512:17: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:515:17: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:520:17: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:524:17: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:529:17: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_password_finish’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:553:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-mock-prompter.c:556:9: 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 # 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: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-openpgp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-openssh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-openssh.c:416:3: warning[unix.Malloc]: Use of memory after it is freed # 414| # 415| if (alg != algo) { # 416|-> g_message ("invalid or mis-matched algorithm in ssh public key: %s", stype); # 417| egg_buffer_uninit (&buffer); # 418| return FALSE; Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-parser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-pkcs11-importer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-record.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-record.c:836:23: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 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-476): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-record.c: scope_hint: In function ‘_gcr_records_parse_colons’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-record.c:836:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /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. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-record.h:25: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-record.c:24: included_from: Included from here. /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-record.c:786:3: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-record.c:786:3: note: in expansion of macro ‘g_return_val_if_fail’ # 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: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-record.c:849:3: warning[unix.Malloc]: Attempt to free released memory # 847| /* Free any not done */ # 848| for (; lines[i] != NULL; i++) # 849|-> g_free (lines[i]); # 850| # 851| /* Individual lines already freed */ Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:350:8: warning[core.CallAndMessage]: 6th function call argument is an uninitialized value # 348| } # 349| # 350|-> ret = (klass->decrypt_transport_data) (self, egg_secure_realloc, value, n_value, # 351| iv, n_iv, &result, &n_result); # 352| Error: GCC_ANALYZER_WARNING (CWE-457): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c: scope_hint: In function ‘perform_decrypt’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:350:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n_iv’ /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. gcr-4.2.1-build/gcr-4.2.1/gck/gck.h:26: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.h:29: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:22: included_from: Included from here. /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:339:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:111:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:112:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:112:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:113:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:113:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:114:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:114:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:111:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:112:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:112:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:113:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:113:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:114:9: note: in expansion of macro ‘g_return_val_if_fail’ /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/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-secret-exchange.c:114:9: note: in expansion of macro ‘g_return_val_if_fail’ # 348| } # 349| # 350|-> ret = (klass->decrypt_transport_data) (self, egg_secure_realloc, value, n_value, # 351| iv, n_iv, &result, &n_result); # 352| Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-process.c: scope_hint: In function ‘on_child_watch’ gcr-4.2.1-build/gcr-4.2.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 /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.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-process.h:27: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-service.c: scope_hint: In function ‘ensure_key’ gcr-4.2.1-build/gcr-4.2.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 /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.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-service.h:27: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.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 # 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: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-service.c:337:12: warning[deadcode.DeadStores]: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret' # 335| /* Handle the request */ # 336| error = NULL; # 337|-> while (!(ret = handle_request (self, agent_connection, &req, &resp, self->cancellable, &error))) { # 338| if (gcr_ssh_agent_process_get_pid (self->process) != 0) { # 339| if (error->code != G_IO_ERROR_CANCELLED) Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-test.c:216:2: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-test.c: scope_hint: In function ‘prepare_remove_identity’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-test.c:216:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘comment’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-test.h:23: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-test.c:25: included_from: Included from here. /usr/include/glib-2.0/glib/gmessages.h:358:32: note: in definition of macro ‘g_message’ # 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: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-test.c:289:2: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 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-457): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-test.c: scope_hint: In function ‘prepare_sign_request’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-test.c:289:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘comment’ /usr/include/glib-2.0/glib/gmessages.h:358:32: note: in definition of macro ‘g_message’ # 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: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-askpass.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-askpass.c: scope_hint: In function ‘gcr_ssh_askpass_constructed’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-askpass.c:285:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*(GcrSshAskpass *)obj.fd’ # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-ssh-askpass.c:290:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*(GcrSshAskpass *)obj.fd’ # 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: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-subject-public-key.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_prompter_stop_prompting’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:434:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated /usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-internal.h:26: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘perform_close’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:458:17: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:460:17: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:495:17: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘prompt_method_ready’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:663:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_prompter_vanished’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:789:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_bus_connected’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:808:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:838:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:113:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:839:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_prompter_begin_prompting’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:872:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:113:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:873:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 871| # 872| g_simple_async_result_take_error (res, error); # 873|-> g_simple_async_result_complete (res); # 874| } # 875| Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_call_timeout’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:884:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:894:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:897:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_call_cancelled’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:908:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:915:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_set_error’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘perform_init_async’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:929:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_real_init_async’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:990:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:996:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_real_init_finish’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1011:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1014:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_perform_prompt_complete’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1126:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1133:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_take_error’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:113:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1134:17: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘perform_prompt_async’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1171:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1173:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1178:17: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_password_finish’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1264:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1268:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_confirm_finish’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1298:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1302:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_close_async’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1579:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1585:9: 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 # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_close_finish’ gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1613:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_is_valid’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:132:21: note: declared here # 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): gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompt.c:1616:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated /usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here # 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: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-system-prompter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/gcr-trust.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-certificate-chain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-certificate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-gnupg-process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-parser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-pkcs11-certificate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-record.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-secure-memory.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): gcr-4.2.1-build/gcr-4.2.1/gcr/test-ssh-agent-preload.c: scope_hint: In function ‘test_changed’ gcr-4.2.1-build/gcr-4.2.1/gcr/test-ssh-agent-preload.c:140:9: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected /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/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.2.1-build/gcr-4.2.1/gcr/gcr-ssh-agent-preload.h:27: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/test-ssh-agent-preload.c:25: included_from: Included from here. /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:255:49: note: in expansion of macro ‘G_LIKELY’ gcr-4.2.1-build/gcr-4.2.1/gcr/test-ssh-agent-preload.c:139:9: note: in expansion of macro ‘g_assert_nonnull’ /usr/include/glib-2.0/glib.h:89: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/gcr/test-ssh-agent-preload.c:139:9: note: in expansion of macro ‘g_assert_nonnull’ <built-in>: note: 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: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-ssh-agent-service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/gcr/test-ssh-askpass.c: scope_hint: In function ‘test_ssh_keygen’ gcr-4.2.1-build/gcr-4.2.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.2.1-build/gcr-4.2.1/gcr/gcr.h:29: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.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: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-subject-public-key.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-system-prompt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/gcr/test-trust.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/redhat-linux-build/gcr/gcr-dbus-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/redhat-linux-build/tmp-introspecthioi1n6b/Gck-2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/redhat-linux-build/tmp-introspecthioi1n6b/Gck-2.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error') Error: CPPCHECK_WARNING: gcr-4.2.1-build/gcr-4.2.1/redhat-linux-build/tmp-introspectjyuidys6/Gcr-4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gcr-4.2.1-build/gcr-4.2.1/redhat-linux-build/tmp-introspectjyuidys6/Gcr-4.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error') Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-certificate-widget.c: scope_hint: In function ‘on_reveal_button_clicked’ gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-certificate-widget.c:111:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_hide’ is deprecated: Use 'gtk_widget_set_visible' instead /usr/include/gtk-4.0/gtk/gtkapplication.h:26: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkwindow.h:32: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtk.h:33: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-certificate-widget.h:14: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-certificate-widget.c:9: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here # 109| { # 110| g_assert (GCR_IS_CERTIFICATE_WIDGET (self)); # 111|-> gtk_widget_hide (button); # 112| gtk_revealer_set_reveal_child (GTK_REVEALER (self->revealer), TRUE); # 113| } Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c: scope_hint: In function ‘gcr_section_create_row’ gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:85:9: warning[-Wdeprecated-declarations]: ‘gtk_style_context_add_class’ is deprecated # 85 | gtk_style_context_add_class (gtk_widget_get_style_context (label), "caption"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/gtk.h:267: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.h:12: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:7: included_from: Included from here. /usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here # 90 | void gtk_style_context_add_class (GtkStyleContext *context, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 83| "halign", GTK_ALIGN_START, # 84| NULL); # 85|-> gtk_style_context_add_class (gtk_widget_get_style_context (label), "caption"); # 86| value = g_object_new (GTK_TYPE_LABEL, # 87| "xalign", 1.0, Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:85:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated # 85 | gtk_style_context_add_class (gtk_widget_get_style_context (label), "caption"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/gtkapplication.h:26: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkwindow.h:32: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtk.h:33: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here # 710 | GtkStyleContext * gtk_widget_get_style_context (GtkWidget *widget); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 83| "halign", GTK_ALIGN_START, # 84| NULL); # 85|-> gtk_style_context_add_class (gtk_widget_get_style_context (label), "caption"); # 86| value = g_object_new (GTK_TYPE_LABEL, # 87| "xalign", 1.0, Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c: scope_hint: In function ‘gcr_section_init’ gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:231:9: warning[-Wdeprecated-declarations]: ‘gtk_style_context_add_class’ is deprecated # 231 | gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "title"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here # 90 | void gtk_style_context_add_class (GtkStyleContext *context, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 229| "hexpand", TRUE, # 230| NULL); # 231|-> gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "title"); # 232| gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "caption-heading"); # 233| self->listbox = gtk_list_box_new (); Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:231:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated # 231 | gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "title"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here # 710 | GtkStyleContext * gtk_widget_get_style_context (GtkWidget *widget); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 229| "hexpand", TRUE, # 230| NULL); # 231|-> gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "title"); # 232| gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "caption-heading"); # 233| self->listbox = gtk_list_box_new (); Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:232:9: warning[-Wdeprecated-declarations]: ‘gtk_style_context_add_class’ is deprecated # 232 | gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "caption-heading"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here # 90 | void gtk_style_context_add_class (GtkStyleContext *context, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 230| NULL); # 231| gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "title"); # 232|-> gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "caption-heading"); # 233| self->listbox = gtk_list_box_new (); # 234| gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "frame"); Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:232:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated # 232 | gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "caption-heading"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here # 710 | GtkStyleContext * gtk_widget_get_style_context (GtkWidget *widget); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 230| NULL); # 231| gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "title"); # 232|-> gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "caption-heading"); # 233| self->listbox = gtk_list_box_new (); # 234| gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "frame"); Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:234:9: warning[-Wdeprecated-declarations]: ‘gtk_style_context_add_class’ is deprecated # 234 | gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "frame"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here # 90 | void gtk_style_context_add_class (GtkStyleContext *context, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 232| gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "caption-heading"); # 233| self->listbox = gtk_list_box_new (); # 234|-> gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "frame"); # 235| gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "rich-list"); # 236| gtk_list_box_set_selection_mode (GTK_LIST_BOX (self->listbox), GTK_SELECTION_NONE); Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:234:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated # 234 | gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "frame"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here # 710 | GtkStyleContext * gtk_widget_get_style_context (GtkWidget *widget); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 232| gtk_style_context_add_class (gtk_widget_get_style_context (self->label), "caption-heading"); # 233| self->listbox = gtk_list_box_new (); # 234|-> gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "frame"); # 235| gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "rich-list"); # 236| gtk_list_box_set_selection_mode (GTK_LIST_BOX (self->listbox), GTK_SELECTION_NONE); Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:235:9: warning[-Wdeprecated-declarations]: ‘gtk_style_context_add_class’ is deprecated # 235 | gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "rich-list"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here # 90 | void gtk_style_context_add_class (GtkStyleContext *context, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 233| self->listbox = gtk_list_box_new (); # 234| gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "frame"); # 235|-> gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "rich-list"); # 236| gtk_list_box_set_selection_mode (GTK_LIST_BOX (self->listbox), GTK_SELECTION_NONE); # 237| self->size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/gcr-section.c:235:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated # 235 | gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "rich-list"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here # 710 | GtkStyleContext * gtk_widget_get_style_context (GtkWidget *widget); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 233| self->listbox = gtk_list_box_new (); # 234| gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "frame"); # 235|-> gtk_style_context_add_class (gtk_widget_get_style_context (self->listbox), "rich-list"); # 236| gtk_list_box_set_selection_mode (GTK_LIST_BOX (self->listbox), GTK_SELECTION_NONE); # 237| self->size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/viewer.c: scope_hint: In function ‘activate’ gcr-4.2.1-build/gcr-4.2.1/tools/viewer/viewer.c:139:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead /usr/include/gtk-4.0/gtk/gtkapplication.h:26: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkwindow.h:32: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtk.h:33: included_from: Included from here. gcr-4.2.1-build/gcr-4.2.1/tools/viewer/viewer.c:10: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here # 137| # 138| gtk_window_set_child (GTK_WINDOW (window), scrolled); # 139|-> gtk_widget_show (window); # 140| } # 141| Error: COMPILER_WARNING (CWE-477): gcr-4.2.1-build/gcr-4.2.1/tools/viewer/viewer.c: scope_hint: In function ‘main’ gcr-4.2.1-build/gcr-4.2.1/tools/viewer/viewer.c:149:9: warning[-Wdeprecated-declarations]: ‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead /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/gtk-4.0/gtk/css/gtkcsssection.h:24: included_from: Included from here. /usr/include/gtk-4.0/gtk/css/gtkcss.h:36: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtk.h:29: included_from: Included from here. /usr/include/glib-2.0/gio/gioenums.h:1545:3: note: declared here # 147| int status; # 148| # 149|-> app = gtk_application_new ("org.gnome.GcrViewerGtk4", G_APPLICATION_FLAGS_NONE); # 150| g_application_add_main_option_entries (G_APPLICATION (app), options); # 151| g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);