lightdm-1.32.0-10.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
lightdm-1.32.0-build/lightdm-1.32.0/common/configuration.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def3]
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c: scope_hint: In function 'load_passwd_file'
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c:384:17: 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.
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c:20: included_from: Included from here.
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c:310:18: note: in expansion of macro 'g_strdup'
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c: scope_hint: In function 'load_passwd_file'
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c:1211:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.h:31:38: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c:1211:27: note: in expansion of macro 'COMMON_IS_USER'
/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'
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c:1211:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.h:31:38: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c:1211:27: note: in expansion of macro 'COMMON_IS_USER'
lightdm-1.32.0-build/lightdm-1.32.0/common/user-list.c:17: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of 'strcmp' must be non-null
# 382| {
# 383| CommonUser *info = link->data;
# 384|-> if (strcmp (common_user_get_name (info), common_user_get_name (user)) == 0)
# 385| {
# 386| if (update_passwd_user (info, common_user_get_real_name (user), common_user_get_home_directory (user), common_user_get_shell (user), common_user_get_image (user)))
Error: CPPCHECK_WARNING: [#def4]
lightdm-1.32.0-build/lightdm-1.32.0/doc/lightdm-gobject-1-scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def5]
lightdm-1.32.0-build/lightdm-1.32.0/doc/lightdm-gobject-1-scan.c:198:16: warning[deadcode.DeadStores]: Although the value stored to 'event_num' is used in the enclosing expression, the value is never actually read from 'event_num'
Error: CPPCHECK_WARNING: [#def6]
lightdm-1.32.0-build/lightdm-1.32.0/liblightdm-gobject/greeter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
lightdm-1.32.0-build/lightdm-1.32.0/liblightdm-gobject/language.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
lightdm-1.32.0-build/lightdm-1.32.0/liblightdm-gobject/session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
lightdm-1.32.0-build/lightdm-1.32.0/liblightdm-gobject/tmp-introspect_fwmm5bb/LightDM-1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def10]
lightdm-1.32.0-build/lightdm-1.32.0/liblightdm-gobject/tmp-introspect_fwmm5bb/LightDM-1.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: [#def11]
lightdm-1.32.0-build/lightdm-1.32.0/src/console-kit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def12]
lightdm-1.32.0-build/lightdm-1.32.0/src/display-manager-service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def13]
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-479): [#def14]
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c: scope_hint: In function ‘xephyr_signal_cb’
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c:54:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c:54:9: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
# 52| g_printerr ("Unable to add seat: %s\n", error->message);
# 53| kill (xephyr_pid, SIGQUIT);
# 54|-> exit (EXIT_FAILURE);
# 55| }
# 56|
Error: GCC_ANALYZER_WARNING (CWE-479): [#def15]
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c:60:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c:60:9: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
# 58| {
# 59| g_printerr ("Unexpected response to AddSeat: %s\n", g_variant_get_type_string (result));
# 60|-> exit (EXIT_FAILURE);
# 61| }
# 62|
Error: GCC_ANALYZER_WARNING (CWE-479): [#def16]
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c:67:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c:67:5: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
# 65| g_print ("%s\n", path);
# 66|
# 67|-> exit (EXIT_SUCCESS);
# 68| }
# 69|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def17]
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c: scope_hint: In function ‘main’
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c:484:28: 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/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c:482:42: note: in expansion of macro ‘g_strdup’
lightdm-1.32.0-build/lightdm-1.32.0/src/dm-tool.c: scope_hint: In function ‘main’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
# 482| g_autofree gchar *property = g_strdup (options[i]);
# 483| gchar *name = property;
# 484|-> gchar *value = strchr (property, '=');
# 485| if (value)
# 486| {
Error: CPPCHECK_WARNING: [#def18]
lightdm-1.32.0-build/lightdm-1.32.0/src/greeter-socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def19]
lightdm-1.32.0-build/lightdm-1.32.0/src/greeter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
lightdm-1.32.0-build/lightdm-1.32.0/src/guest-account.c: scope_hint: In function ‘guest_account_setup’
lightdm-1.32.0-build/lightdm-1.32.0/src/guest-account.c:85:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘username’
/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.
lightdm-1.32.0-build/lightdm-1.32.0/src/guest-account.h:15: included_from: Included from here.
lightdm-1.32.0-build/lightdm-1.32.0/src/guest-account.c:15: included_from: Included from here.
lightdm-1.32.0-build/lightdm-1.32.0/src/guest-account.c:78:39: note: in expansion of macro ‘g_strstrip’
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
lightdm-1.32.0-build/lightdm-1.32.0/src/guest-account.c:81:30: note: in expansion of macro ‘g_strstrip’
lightdm-1.32.0-build/lightdm-1.32.0/src/guest-account.c:81:20: note: in expansion of macro ‘g_strdup’
lightdm-1.32.0-build/lightdm-1.32.0/src/guest-account.c: scope_hint: In function ‘guest_account_setup’
# 83| username = g_strdup ("");
# 84|
# 85|-> if (strcmp (username, "") == 0)
# 86| {
# 87| g_debug ("Guest account setup script didn't return a username");
Error: CPPCHECK_WARNING: [#def21]
lightdm-1.32.0-build/lightdm-1.32.0/src/lightdm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
lightdm-1.32.0-build/lightdm-1.32.0/src/lightdm.c: scope_hint: In function ‘main’
lightdm-1.32.0-build/lightdm-1.32.0/src/lightdm.c:642:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/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.
lightdm-1.32.0-build/lightdm-1.32.0/src/lightdm.c:17: included_from: Included from here.
lightdm-1.32.0-build/lightdm-1.32.0/src/lightdm.c:638:46: note: in expansion of macro ‘g_strdup’
lightdm-1.32.0-build/lightdm-1.32.0/src/lightdm.c: scope_hint: In function ‘main’
# 640| }
# 641| g_autofree gchar *empty_source = g_strdup (last_source);
# 642|-> for (i = 0; empty_source[i] != '\0'; i++)
# 643| empty_source[i] = ' ';
# 644|
Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
lightdm-1.32.0-build/lightdm-1.32.0/src/lightdm.c:717:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(pid_path, "w")’
# 715|
# 716| /* Write PID file */
# 717|-> FILE *pid_file = fopen (pid_path, "w");
# 718| if (pid_file)
# 719| {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
lightdm-1.32.0-build/lightdm-1.32.0/src/lightdm.c:717:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(pid_path, "w")’
# 715|
# 716| /* Write PID file */
# 717|-> FILE *pid_file = fopen (pid_path, "w");
# 718| if (pid_file)
# 719| {
Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
lightdm-1.32.0-build/lightdm-1.32.0/src/lightdm.c:720:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(pid_path, "w")’
# 718| if (pid_file)
# 719| {
# 720|-> fprintf (pid_file, "%d\n", getpid ());
# 721| fclose (pid_file);
# 722| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
lightdm-1.32.0-build/lightdm-1.32.0/src/lightdm.c:720:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(pid_path, "w")’
# 718| if (pid_file)
# 719| {
# 720|-> fprintf (pid_file, "%d\n", getpid ());
# 721| fclose (pid_file);
# 722| }
Error: CPPCHECK_WARNING: [#def27]
lightdm-1.32.0-build/lightdm-1.32.0/src/login1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def28]
lightdm-1.32.0-build/lightdm-1.32.0/src/process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def29]
lightdm-1.32.0-build/lightdm-1.32.0/src/process.c:266:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'env_keys'
# 264| }
# 265|
# 266|-> close (log_fd);
# 267|
# 268| if (pid < 0)
Error: CLANG_WARNING: [#def30]
lightdm-1.32.0-build/lightdm-1.32.0/src/process.c:266:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'env_values'
# 264| }
# 265|
# 266|-> close (log_fd);
# 267|
# 268| if (pid < 0)
Error: CPPCHECK_WARNING: [#def31]
lightdm-1.32.0-build/lightdm-1.32.0/src/seat-local.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def32]
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c: scope_hint: In function ‘prepend_argv’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:1045:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘old_argv’
/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.
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.h:15: included_from: Included from here.
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:16: 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’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:151:5: 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’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:151:5: 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’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:151:5: 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’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:151:5: 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’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:151:5: 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’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:952:5: 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’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:953:5: 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’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:953:5: note: in expansion of macro ‘g_return_val_if_fail’
/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.
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:959:32: note: in expansion of macro ‘g_str_has_suffix’
/usr/include/glib-2.0/gobject/gobject.h:30: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:906:9: note: in expansion of macro ‘g_signal_connect’
/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’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:151:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1358:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
/usr/include/glib-2.0/glib/gmacros.h:1372:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
/usr/include/glib-2.0/glib/glib-autocleanups.h:56:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c: scope_hint: In function ‘prepend_argv’
/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’
lightdm-1.32.0-build/lightdm-1.32.0/src/seat.c:151:5: note: in expansion of macro ‘g_return_val_if_fail’
# 1043| new_argv[0] = g_strdup (value);
# 1044| gint i;
# 1045|-> for (i = 0; old_argv[i]; i++)
# 1046| new_argv[i + 1] = old_argv[i];
# 1047| new_argv[i + 1] = NULL;
Error: CPPCHECK_WARNING: [#def34]
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-697): [#def35]
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c: scope_hint: In function ‘updwtmpx’
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c:204:9: warning[-Waddress]: the comparison will always evaluate as ‘true’ for the address of ‘ut_line’ will never be NULL
# 204 | if (ut->ut_line)
# | ^~
/usr/include/utmpx.h:31: included_from: Included from here.
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c:17: included_from: Included from here.
/usr/include/bits/utmpx.h:59:8: note: ‘ut_line’ declared here
# 59 | char ut_line[__UT_LINESIZE]
# | ^~~~~~~
# 202| u.ut_type = ut->ut_type;
# 203| u.ut_pid = ut->ut_pid;
# 204|-> if (ut->ut_line)
# 205| strncpy (u.ut_line, ut->ut_line, sizeof (u.ut_line));
# 206| if (ut->ut_id)
Error: COMPILER_WARNING (CWE-697): [#def36]
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c:206:9: warning[-Waddress]: the comparison will always evaluate as ‘true’ for the address of ‘ut_id’ will never be NULL
# 206 | if (ut->ut_id)
# | ^~
/usr/include/bits/utmpx.h:61:8: note: ‘ut_id’ declared here
# 61 | char ut_id[4]
# | ^~~~~
# 204| if (ut->ut_line)
# 205| strncpy (u.ut_line, ut->ut_line, sizeof (u.ut_line));
# 206|-> if (ut->ut_id)
# 207| strncpy (u.ut_id, ut->ut_id, sizeof (u.ut_id));
# 208| if (ut->ut_user)
Error: COMPILER_WARNING (CWE-697): [#def37]
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c:208:9: warning[-Waddress]: the comparison will always evaluate as ‘true’ for the address of ‘ut_user’ will never be NULL
# 208 | if (ut->ut_user)
# | ^~
/usr/include/bits/utmpx.h:63:8: note: ‘ut_user’ declared here
# 63 | char ut_user[__UT_NAMESIZE]
# | ^~~~~~~
# 206| if (ut->ut_id)
# 207| strncpy (u.ut_id, ut->ut_id, sizeof (u.ut_id));
# 208|-> if (ut->ut_user)
# 209| strncpy (u.ut_user, ut->ut_user, sizeof (u.ut_user));
# 210| if (ut->ut_host)
Error: COMPILER_WARNING (CWE-697): [#def38]
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c:210:9: warning[-Waddress]: the comparison will always evaluate as ‘true’ for the address of ‘ut_host’ will never be NULL
# 210 | if (ut->ut_host)
# | ^~
/usr/include/bits/utmpx.h:65:8: note: ‘ut_host’ declared here
# 65 | char ut_host[__UT_HOSTSIZE]
# | ^~~~~~~
# 208| if (ut->ut_user)
# 209| strncpy (u.ut_user, ut->ut_user, sizeof (u.ut_user));
# 210|-> if (ut->ut_host)
# 211| strncpy (u.ut_host, ut->ut_host, sizeof (u.ut_host));
# 212| u.ut_tv.tv_sec = ut->ut_tv.tv_sec;
Error: GCC_ANALYZER_WARNING: [#def39]
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c: scope_hint: In function ‘session_child_run’
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c:257:5: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 0)’
# 255| /* Make input non-blocking */
# 256| int fd = open ("/dev/null", O_RDONLY);
# 257|-> dup2 (fd, STDIN_FILENO);
# 258| close (fd);
# 259|
Error: GCC_ANALYZER_WARNING: [#def40]
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c:262:5: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 1)’
# 260| /* Close stdout */
# 261| fd = open ("/dev/null", O_WRONLY);
# 262|-> dup2 (fd, STDOUT_FILENO);
# 263| close (fd);
# 264|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def41]
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c:299:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c: scope_hint: In function ‘session_child_run’
lightdm-1.32.0-build/lightdm-1.32.0/src/session-child.c:15: included_from: Included from here.
/usr/include/security/pam_appl.h:23:1: note: argument 1 of ‘pam_start’ must be non-null
# 297| /* Setup PAM */
# 298| struct pam_conv conversation = { pam_conv_cb, NULL };
# 299|-> int result = pam_start (service, username, &conversation, &pam_handle);
# 300| if (result != PAM_SUCCESS)
# 301| {
Error: CPPCHECK_WARNING: [#def42]
lightdm-1.32.0-build/lightdm-1.32.0/src/session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
lightdm-1.32.0-build/lightdm-1.32.0/src/session.c: scope_hint: In function ‘from_child_cb’
lightdm-1.32.0-build/lightdm-1.32.0/src/session.c:544:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘m’
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
/usr/include/glib-2.0/glib/gprintf.h:23: included_from: Included from here.
/usr/include/glib-2.0/glib/gstdio.h:24: included_from: Included from here.
lightdm-1.32.0-build/lightdm-1.32.0/src/session.c:20: included_from: Included from here.
/usr/include/glib-2.0/gobject/gobject.h:695:36: note: in expansion of macro ‘g_clear_pointer’
lightdm-1.32.0-build/lightdm-1.32.0/src/session.c:505:9: note: in expansion of macro ‘g_clear_object’
# 542| struct pam_message *m = &priv->messages[i];
# 543| read_from_child (session, &m->msg_style, sizeof (m->msg_style));
# 544|-> m->msg = read_string_from_child (session);
# 545| }
# 546|
Error: CPPCHECK_WARNING: [#def44]
lightdm-1.32.0-build/lightdm-1.32.0/src/vnc-server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def45]
lightdm-1.32.0-build/lightdm-1.32.0/src/x-authority.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING: [#def46]
lightdm-1.32.0-build/lightdm-1.32.0/src/x-server-local.c: scope_hint: In function ‘x_server_local_run’
lightdm-1.32.0-build/lightdm-1.32.0/src/x-server-local.c:346:5: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 0)’
# 344| /* Make input non-blocking */
# 345| int fd = open ("/dev/null", O_RDONLY);
# 346|-> dup2 (fd, STDIN_FILENO);
# 347| close (fd);
# 348|
Error: CPPCHECK_WARNING: [#def47]
lightdm-1.32.0-build/lightdm-1.32.0/src/xdmcp-server.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-191.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | lightdm-1.32.0-10.fc41 |
store-results-to | /tmp/tmpy6apinvv/lightdm-1.32.0-10.fc41.tar.xz |
time-created | 2024-07-03 16:07:51 |
time-finished | 2024-07-03 16:09:45 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpy6apinvv/lightdm-1.32.0-10.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpy6apinvv/lightdm-1.32.0-10.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |