gcr-4.3.0-2.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-armor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-asn1x.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def3]
gcr-4.3.0-build/gcr-4.3.0/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): [#def4]
gcr-4.3.0-build/gcr-4.3.0/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): [#def5]
gcr-4.3.0-build/gcr-4.3.0/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: [#def6]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-buffer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-decimal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-dh-gnutls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-dh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-dn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def11]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-file-tracker.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def12]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-file-tracker.c: scope_hint: In function ‘update_directory’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/egg/egg-file-tracker.h:26: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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): [#def13]
gcr-4.3.0-build/gcr-4.3.0/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: [#def14]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-hex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-hkdf-gnutls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-padding.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
gcr-4.3.0-build/gcr-4.3.0/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): [#def18]
gcr-4.3.0-build/gcr-4.3.0/egg/egg-secure-memory.c: scope_hint: In function ‘egg_secure_strndup_full’
gcr-4.3.0-build/gcr-4.3.0/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: [#def19]
gcr-4.3.0-build/gcr-4.3.0/egg/test-asn1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def20]
gcr-4.3.0-build/gcr-4.3.0/egg/test-dh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def21]
gcr-4.3.0-build/gcr-4.3.0/egg/test-hkdf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def22]
gcr-4.3.0-build/gcr-4.3.0/egg/test-padding.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def23]
gcr-4.3.0-build/gcr-4.3.0/egg/test-padding.c:51:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 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-688): [#def24]
/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.3.0-build/gcr-4.3.0/egg/egg-padding.h:23: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/egg/test-padding.c:28: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/egg/test-padding.c: scope_hint: In function ‘check_padding’
gcr-4.3.0-build/gcr-4.3.0/egg/test-padding.c:51: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.3.0-build/gcr-4.3.0/egg/test-padding.c:51: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.3.0-build/gcr-4.3.0/egg/test-padding.c:49: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.3.0-build/gcr-4.3.0/egg/test-padding.c:49: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.3.0-build/gcr-4.3.0/egg/test-padding.c:50: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.3.0-build/gcr-4.3.0/egg/test-padding.c:51: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
# 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: CPPCHECK_WARNING: [#def25]
gcr-4.3.0-build/gcr-4.3.0/egg/test-secmem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def26]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-attributes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-attributes.c: scope_hint: In function ‘gck_attributes_unref.part.0’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gck/gck.h:26: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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: [#def28]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-call.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def29]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-enumerator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def30]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-mock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-mock.c: scope_hint: In function ‘gck_mock_module_set_pin’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gck/gck.h:26: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/gck/gck-mock.c:22: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/gck/gck-mock.c:325:19: note: in expansion of macro ‘g_strdup’
gcr-4.3.0-build/gcr-4.3.0/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: [#def32]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-modules.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def33]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def34]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def35]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-slot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def36]
gcr-4.3.0-build/gcr-4.3.0/gck/gck-uri.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def37]
gcr-4.3.0-build/gcr-4.3.0/gck/test-gck-attributes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def38]
gcr-4.3.0-build/gcr-4.3.0/gck/test-gck-crypto.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def39]
gcr-4.3.0-build/gcr-4.3.0/gck/test-gck-enumerator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def40]
gcr-4.3.0-build/gcr-4.3.0/gck/test-gck-module.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def41]
gcr-4.3.0-build/gcr-4.3.0/gck/test-gck-object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
gcr-4.3.0-build/gcr-4.3.0/gck/test-gck-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
gcr-4.3.0-build/gcr-4.3.0/gck/test-gck-slot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def44]
gcr-4.3.0-build/gcr-4.3.0/gck/test-gck-uri.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def45]
gcr-4.3.0-build/gcr-4.3.0/gcr/frob-parser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def46]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-certificate-chain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def47]
gcr-4.3.0-build/gcr-4.3.0/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: [#def48]
gcr-4.3.0-build/gcr-4.3.0/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: [#def49]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-certificate-extensions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def50]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-certificate-request.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def51]
gcr-4.3.0-build/gcr-4.3.0/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: [#def52]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-certificate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def53]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-certificate.c:1172: error[legacyUninitvar]: Uninitialized variable: label
# 1170| display = g_strdup ("");
# 1171|
# 1172|-> _gcr_certificate_section_new_field_take_value (section, label, g_steal_pointer (&display));
# 1173| g_clear_pointer (&label, g_free);
# 1174| }
Error: CLANG_WARNING: [#def54]
gcr-4.3.0-build/gcr-4.3.0/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: [#def55]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-gnupg-process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def56]
gcr-4.3.0-build/gcr-4.3.0/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): [#def57]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-gnupg-records.c: scope_hint: In function ‘_gcr_gnupg_records_parse_user_id’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gcr/gcr-gnupg-records.h:23: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-gnupg-records.c:22: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-gnupg-records.c:45:26: note: in expansion of macro ‘g_strdup’
gcr-4.3.0-build/gcr-4.3.0/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: [#def58]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-importer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def59]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-key-mechanisms.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def60]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-mock-prompter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def61]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-mock-prompter.c: scope_hint: In function ‘on_timeout_complete’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gck/gck.h:28: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-types.h:40: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-prompt.h:29: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompter.h:29: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-mock-prompter.h:29: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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): [#def62]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-mock-prompter.c: scope_hint: In function ‘on_timeout_complete_and_close’
gcr-4.3.0-build/gcr-4.3.0/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): [#def63]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_confirm_async’
gcr-4.3.0-build/gcr-4.3.0/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): [#def64]
gcr-4.3.0-build/gcr-4.3.0/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): [#def65]
gcr-4.3.0-build/gcr-4.3.0/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): [#def66]
gcr-4.3.0-build/gcr-4.3.0/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): [#def67]
gcr-4.3.0-build/gcr-4.3.0/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): [#def68]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_confirm_finish’
gcr-4.3.0-build/gcr-4.3.0/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): [#def69]
gcr-4.3.0-build/gcr-4.3.0/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): [#def70]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_password_async’
gcr-4.3.0-build/gcr-4.3.0/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): [#def71]
gcr-4.3.0-build/gcr-4.3.0/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): [#def72]
gcr-4.3.0-build/gcr-4.3.0/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): [#def73]
gcr-4.3.0-build/gcr-4.3.0/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): [#def74]
gcr-4.3.0-build/gcr-4.3.0/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): [#def75]
gcr-4.3.0-build/gcr-4.3.0/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): [#def76]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-mock-prompter.c: scope_hint: In function ‘gcr_mock_prompt_password_finish’
gcr-4.3.0-build/gcr-4.3.0/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): [#def77]
gcr-4.3.0-build/gcr-4.3.0/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: CPPCHECK_WARNING: [#def78]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-openpgp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def79]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-openssh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def80]
gcr-4.3.0-build/gcr-4.3.0/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: [#def81]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-parser-gnutls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def82]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-parser-gnutls.c:593:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 591| gint ret;
# 592|
# 593|-> ret = GCR_ERROR_FAILURE;
# 594|
# 595| /* Loop to try different passwords */
Error: CPPCHECK_WARNING: [#def83]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-parser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def84]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-pkcs11-importer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def85]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-record.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def86]
gcr-4.3.0-build/gcr-4.3.0/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): [#def87]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-record.c: scope_hint: In function ‘_gcr_records_parse_colons’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gcr/gcr-record.h:25: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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: [#def88]
gcr-4.3.0-build/gcr-4.3.0/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: [#def89]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-secret-exchange.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def90]
gcr-4.3.0-build/gcr-4.3.0/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): [#def91]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-secret-exchange.c: scope_hint: In function ‘perform_decrypt’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gck/gck.h:26: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-secret-exchange.h:29: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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: CLANG_WARNING: [#def92]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-secret-exchange.c:607:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'data'
# 605| data->params = egg_dh_default_params (EXCHANGE_1_IKE_NAME);
# 606| if (!data->params)
# 607|-> g_return_val_if_reached (FALSE);
# 608|
# 609| exchange->pv->default_exchange = data;
Error: COMPILER_WARNING (CWE-477): [#def93]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-ssh-agent-process.c: scope_hint: In function ‘on_child_watch’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gcr/gcr-ssh-agent-process.h:27: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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): [#def94]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-ssh-agent-service.c: scope_hint: In function ‘ensure_key’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gcr/gcr-ssh-agent-service.h:27: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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: CLANG_WARNING: [#def95]
gcr-4.3.0-build/gcr-4.3.0/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: [#def96]
gcr-4.3.0-build/gcr-4.3.0/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): [#def97]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-ssh-agent-test.c: scope_hint: In function ‘prepare_remove_identity’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gcr/gcr-ssh-agent-test.h:23: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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: [#def98]
gcr-4.3.0-build/gcr-4.3.0/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): [#def99]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-ssh-agent-test.c: scope_hint: In function ‘prepare_sign_request’
gcr-4.3.0-build/gcr-4.3.0/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: [#def100]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-ssh-agent-util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def101]
gcr-4.3.0-build/gcr-4.3.0/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): [#def102]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-ssh-askpass.c: scope_hint: In function ‘gcr_ssh_askpass_constructed’
gcr-4.3.0-build/gcr-4.3.0/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): [#def103]
gcr-4.3.0-build/gcr-4.3.0/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: [#def104]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-subject-public-key.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def105]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def106]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_prompter_stop_prompting’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gcr/gcr-internal.h:26: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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): [#def107]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘perform_close’
gcr-4.3.0-build/gcr-4.3.0/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): [#def108]
gcr-4.3.0-build/gcr-4.3.0/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): [#def109]
gcr-4.3.0-build/gcr-4.3.0/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): [#def110]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘prompt_method_ready’
gcr-4.3.0-build/gcr-4.3.0/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): [#def111]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_prompter_vanished’
gcr-4.3.0-build/gcr-4.3.0/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): [#def112]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_bus_connected’
gcr-4.3.0-build/gcr-4.3.0/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): [#def113]
gcr-4.3.0-build/gcr-4.3.0/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): [#def114]
gcr-4.3.0-build/gcr-4.3.0/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): [#def115]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_prompter_begin_prompting’
gcr-4.3.0-build/gcr-4.3.0/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): [#def116]
gcr-4.3.0-build/gcr-4.3.0/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): [#def117]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_call_timeout’
gcr-4.3.0-build/gcr-4.3.0/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): [#def118]
gcr-4.3.0-build/gcr-4.3.0/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): [#def119]
gcr-4.3.0-build/gcr-4.3.0/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): [#def120]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_call_cancelled’
gcr-4.3.0-build/gcr-4.3.0/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): [#def121]
gcr-4.3.0-build/gcr-4.3.0/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): [#def122]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘perform_init_async’
gcr-4.3.0-build/gcr-4.3.0/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): [#def123]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_real_init_async’
gcr-4.3.0-build/gcr-4.3.0/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): [#def124]
gcr-4.3.0-build/gcr-4.3.0/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): [#def125]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_real_init_finish’
gcr-4.3.0-build/gcr-4.3.0/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): [#def126]
gcr-4.3.0-build/gcr-4.3.0/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): [#def127]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘on_perform_prompt_complete’
gcr-4.3.0-build/gcr-4.3.0/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): [#def128]
gcr-4.3.0-build/gcr-4.3.0/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): [#def129]
gcr-4.3.0-build/gcr-4.3.0/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): [#def130]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘perform_prompt_async’
gcr-4.3.0-build/gcr-4.3.0/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): [#def131]
gcr-4.3.0-build/gcr-4.3.0/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): [#def132]
gcr-4.3.0-build/gcr-4.3.0/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): [#def133]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_password_finish’
gcr-4.3.0-build/gcr-4.3.0/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): [#def134]
gcr-4.3.0-build/gcr-4.3.0/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): [#def135]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_confirm_finish’
gcr-4.3.0-build/gcr-4.3.0/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): [#def136]
gcr-4.3.0-build/gcr-4.3.0/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): [#def137]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_close_async’
gcr-4.3.0-build/gcr-4.3.0/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): [#def138]
gcr-4.3.0-build/gcr-4.3.0/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): [#def139]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompt.c: scope_hint: In function ‘gcr_system_prompt_close_finish’
gcr-4.3.0-build/gcr-4.3.0/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): [#def140]
gcr-4.3.0-build/gcr-4.3.0/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: CPPCHECK_WARNING: [#def141]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-system-prompter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def142]
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr-trust.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def143]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-certificate-chain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def144]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-certificate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def145]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-gnupg-process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def146]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-parser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def147]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-pkcs11-certificate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def148]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-record.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def149]
gcr-4.3.0-build/gcr-4.3.0/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): [#def150]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-ssh-agent-preload.c: scope_hint: In function ‘test_changed’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/gcr/gcr-ssh-agent-preload.h:27: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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: [#def151]
gcr-4.3.0-build/gcr-4.3.0/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): [#def152]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-ssh-askpass.c: scope_hint: In function ‘test_ssh_keygen’
gcr-4.3.0-build/gcr-4.3.0/gcr/test-ssh-askpass.c:102: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.
gcr-4.3.0-build/gcr-4.3.0/gcr/gcr.h:29: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/gcr/test-ssh-askpass.c:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gspawn.h:315:10: note: declared here
# 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: [#def153]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-subject-public-key.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def154]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-system-prompt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def155]
gcr-4.3.0-build/gcr-4.3.0/gcr/test-trust.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def156]
gcr-4.3.0-build/gcr-4.3.0/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: [#def157]
gcr-4.3.0-build/gcr-4.3.0/redhat-linux-build/tmp-introspect6_zs8zlf/Gck-2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def158]
gcr-4.3.0-build/gcr-4.3.0/redhat-linux-build/tmp-introspect6_zs8zlf/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: [#def159]
gcr-4.3.0-build/gcr-4.3.0/redhat-linux-build/tmp-introspectjylh_fwa/Gcr-4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def160]
gcr-4.3.0-build/gcr-4.3.0/redhat-linux-build/tmp-introspectjylh_fwa/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): [#def161]
gcr-4.3.0-build/gcr-4.3.0/tools/viewer/gcr-certificate-widget.c: scope_hint: In function ‘on_reveal_button_clicked’
gcr-4.3.0-build/gcr-4.3.0/tools/viewer/gcr-certificate-widget.c:111:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_hide’ is deprecated: Use 'gtk_widget_set_visible' instead
# 111 | gtk_widget_hide (button);
# | ^~~~~~~~~~~~~~~
/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.3.0-build/gcr-4.3.0/tools/viewer/gcr-certificate-widget.h:14: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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
# 273 | void gtk_widget_hide (GtkWidget *widget);
# | ^~~~~~~~~~~~~~~
# 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): [#def162]
gcr-4.3.0-build/gcr-4.3.0/tools/viewer/gcr-section.c: scope_hint: In function ‘gcr_section_create_row’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/tools/viewer/gcr-section.h:12: included_from: Included from here.
gcr-4.3.0-build/gcr-4.3.0/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): [#def163]
gcr-4.3.0-build/gcr-4.3.0/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): [#def164]
gcr-4.3.0-build/gcr-4.3.0/tools/viewer/gcr-section.c: scope_hint: In function ‘gcr_section_init’
gcr-4.3.0-build/gcr-4.3.0/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): [#def165]
gcr-4.3.0-build/gcr-4.3.0/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): [#def166]
gcr-4.3.0-build/gcr-4.3.0/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): [#def167]
gcr-4.3.0-build/gcr-4.3.0/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): [#def168]
gcr-4.3.0-build/gcr-4.3.0/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): [#def169]
gcr-4.3.0-build/gcr-4.3.0/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): [#def170]
gcr-4.3.0-build/gcr-4.3.0/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): [#def171]
gcr-4.3.0-build/gcr-4.3.0/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): [#def172]
gcr-4.3.0-build/gcr-4.3.0/tools/viewer/viewer.c: scope_hint: In function ‘activate’
gcr-4.3.0-build/gcr-4.3.0/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.3.0-build/gcr-4.3.0/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): [#def173]
gcr-4.3.0-build/gcr-4.3.0/tools/viewer/viewer.c: scope_hint: In function ‘main’
gcr-4.3.0-build/gcr-4.3.0/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);
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-28.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | gcr-4.3.0-2.fc41 |
store-results-to | /tmp/tmp5cahhlh7/gcr-4.3.0-2.fc41.tar.xz |
time-created | 2024-07-03 12:55:01 |
time-finished | 2024-07-03 12:57:28 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp5cahhlh7/gcr-4.3.0-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp5cahhlh7/gcr-4.3.0-2.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |