realmd-0.17.1-12.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
realmd-0.17.1-build/realmd-0.17.1/realm-dbus-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
realmd-0.17.1-build/realmd-0.17.1/service/realm-adcli-enroll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def3]
realmd-0.17.1-build/realmd-0.17.1/service/realm-command.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def4]
realmd-0.17.1-build/realmd-0.17.1/service/realm-credential.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
realmd-0.17.1-build/realmd-0.17.1/service/realm-daemon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
realmd-0.17.1-build/realmd-0.17.1/service/realm-disco-domain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def7]
realmd-0.17.1-build/realmd-0.17.1/service/realm-disco-mscldap.c:142: warning[uninitvar]: Uninitialized variable: *at
# 140| unsigned int *val)
# 141| {
# 142|-> unsigned char *p = *at;
# 143| if (p + 4 > end)
# 144| return FALSE;
Error: CPPCHECK_WARNING (CWE-457): [#def8]
realmd-0.17.1-build/realmd-0.17.1/service/realm-disco-mscldap.c:180: warning[uninitvar]: Uninitialized variable: end
# 178| /* domain forest */
# 179| if (!success ||
# 180|-> !get_32_le (&at, end, &type) || type != 23 ||
# 181| !get_32_le (&at, end, &flags) ||
# 182| !skip_n (&at, end, 16) || /* guid */
Error: CPPCHECK_WARNING (CWE-457): [#def9]
realmd-0.17.1-build/realmd-0.17.1/service/realm-disco-mscldap.c:183: warning[uninitvar]: Uninitialized variable: beg
# 181| !get_32_le (&at, end, &flags) ||
# 182| !skip_n (&at, end, 16) || /* guid */
# 183|-> !parse_string (beg, end, &at, &unused) || /* forest */
# 184| !parse_string (beg, end, &at, &disco->domain_name) ||
# 185| !parse_string (beg, end, &at, &disco->netlogon_server_name) ||
Error: CPPCHECK_WARNING: [#def10]
realmd-0.17.1-build/realmd-0.17.1/service/realm-dn-util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def11]
realmd-0.17.1-build/realmd-0.17.1/service/realm-ini-config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def12]
realmd-0.17.1-build/realmd-0.17.1/service/realm-ini-config.c:221:19: warning[unix.Malloc]: Use of memory after it is freed
# 219| return;
# 220|
# 221|-> self->filename = g_strdup (filename);
# 222|
# 223| /*
Error: CPPCHECK_WARNING: [#def13]
realmd-0.17.1-build/realmd-0.17.1/service/realm-invocation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
realmd-0.17.1-build/realmd-0.17.1/service/realm-kerberos-config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
realmd-0.17.1-build/realmd-0.17.1/service/realm-kerberos.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
realmd-0.17.1-build/realmd-0.17.1/service/realm-ldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
realmd-0.17.1-build/realmd-0.17.1/service/realm-login-name.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
realmd-0.17.1-build/realmd-0.17.1/service/realm-packages.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def19]
realmd-0.17.1-build/realmd-0.17.1/service/realm-packages.c:222:12: warning[deadcode.DeadStores]: Although the value stored to 'string' is used in the enclosing expression, the value is never actually read from 'string'
# 220|
# 221| g_debug ("packages: call %s %s", transaction->method,
# 222|-> string = g_variant_print (transaction->parameters, FALSE));
# 223| g_dbus_connection_call (transaction->connection,
# 224| "org.freedesktop.PackageKit",
Error: CPPCHECK_WARNING: [#def20]
realmd-0.17.1-build/realmd-0.17.1/service/realm-provider.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
realmd-0.17.1-build/realmd-0.17.1/service/realm-provider.c: scope_hint: In function ‘on_discover_complete’
realmd-0.17.1-build/realmd-0.17.1/service/realm-provider.c:183:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘relevance’
/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.
/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.
realmd-0.17.1-build/realmd-0.17.1/service/realm-daemon.h:20: included_from: Included from here.
realmd-0.17.1-build/realmd-0.17.1/service/realm-provider.c:17: 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’
realmd-0.17.1-build/realmd-0.17.1/service/realm-provider.c:494:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
realmd-0.17.1-build/realmd-0.17.1/service/realm-provider.c:494:9: note: in expansion of macro ‘g_return_val_if_fail’
# 181|
# 182| realms = realm_provider_discover_finish (method->self, result, &relevance, &error);
# 183|-> return_discover_result (method, realms, relevance, error);
# 184| }
# 185|
Error: CPPCHECK_WARNING: [#def22]
realmd-0.17.1-build/realmd-0.17.1/service/realm-samba-enroll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def23]
realmd-0.17.1-build/realmd-0.17.1/service/realm-samba-winbind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def24]
realmd-0.17.1-build/realmd-0.17.1/service/realm-settings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def25]
realmd-0.17.1-build/realmd-0.17.1/service/realm-sssd-ad.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def26]
realmd-0.17.1-build/realmd-0.17.1/service/realm-sssd-config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def27]
realmd-0.17.1-build/realmd-0.17.1/service/realm-sssd-ipa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def28]
realmd-0.17.1-build/realmd-0.17.1/service/realm-sssd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def29]
realmd-0.17.1-build/realmd-0.17.1/service/realm-sssd.c: scope_hint: In function ‘realm_sssd_build_default_home’
realmd-0.17.1-build/realmd-0.17.1/service/realm-sssd.c:591:15: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/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.
realmd-0.17.1-build/realmd-0.17.1/service/realm-command.h:18: included_from: Included from here.
realmd-0.17.1-build/realmd-0.17.1/service/realm-sssd.c:17: included_from: Included from here.
realmd-0.17.1-build/realmd-0.17.1/service/realm-sssd.c:590:16: note: in expansion of macro ‘g_strdup’
realmd-0.17.1-build/realmd-0.17.1/service/realm-sssd.c: scope_hint: In function ‘realm_sssd_build_default_home’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
# 589| /* Change from our format to the sssd format place-holders */
# 590| home = g_strdup (value);
# 591|-> pos = strstr (home, "%U");
# 592| if (pos)
# 593| pos[1] = 'u';
Error: CPPCHECK_WARNING: [#def30]
realmd-0.17.1-build/realmd-0.17.1/service/safe-format-string.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
realmd-0.17.1-build/realmd-0.17.1/tools/realm-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
realmd-0.17.1-build/realmd-0.17.1/tools/realm-client.c: scope_hint: In function ‘prompt_stdin’
realmd-0.17.1-build/realmd-0.17.1/tools/realm-client.c:802:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘password’
# 800| password = malloc (pass_max);
# 801| if (!fgets (password, pass_max, stdin))
# 802|-> password[0] = '\0';
# 803|
# 804| g_printf ("\n");
Error: GCC_ANALYZER_WARNING (CWE-688): [#def33]
realmd-0.17.1-build/realmd-0.17.1/tools/realm-client.c:806:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘password’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 804| g_printf ("\n");
# 805|
# 806|-> len = strlen (password);
# 807| if (len > 0 && password[len - 1] == '\n')
# 808| password[len - 1] = '\0';
Error: CPPCHECK_WARNING: [#def34]
realmd-0.17.1-build/realmd-0.17.1/tools/realm-discover.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def35]
realmd-0.17.1-build/realmd-0.17.1/tools/realm-join.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def36]
realmd-0.17.1-build/realmd-0.17.1/tools/realm-leave.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def37]
realmd-0.17.1-build/realmd-0.17.1/tools/realm-logins.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
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-184.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | realmd-0.17.1-12.fc41 |
store-results-to | /tmp/tmpcxxhcify/realmd-0.17.1-12.fc41.tar.xz |
time-created | 2024-07-03 17:47:54 |
time-finished | 2024-07-03 17:49:22 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcxxhcify/realmd-0.17.1-12.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpcxxhcify/realmd-0.17.1-12.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |