gdm-46.2-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
gdm-46.2-build/gdm-46.2/chooser/gdm-host-chooser-widget.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def2]
gdm-46.2-build/gdm-46.2/chooser/gdm-host-chooser-widget.c:251: error[uninitvar]: Uninitialized variable: clnt_ss
#  249|           ss_len = (int) sizeof (clnt_ss);
#  250|   
#  251|->         res = XdmcpFill (widget->socket_fd, &buf, (XdmcpNetaddr)&clnt_ss, &ss_len);
#  252|           if G_UNLIKELY (! res) {
#  253|                   g_debug (_("XDMCP: Could not create XDMCP buffer!"));

Error: CPPCHECK_WARNING: [#def3]
gdm-46.2-build/gdm-46.2/common/gdm-address.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
gdm-46.2-build/gdm-46.2/common/gdm-common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
gdm-46.2-build/gdm-46.2/common/gdm-settings-desktop-backend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
gdm-46.2-build/gdm-46.2/common/gdm-settings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def7]
gdm-46.2-build/gdm-46.2/daemon/gdm-dbus-util.c:106:17: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  104|           if (g_str_has_prefix (client_address, "unix:path=")) {
#  105|                   client_address += strlen("unix:path=");
#  106|->                 g_chmod (client_address, 0666);
#  107|           }
#  108|   

Error: CPPCHECK_WARNING: [#def8]
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c: scope_hint: In function ‘gdm_display_access_file_open’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:216:28: warning[-Wanalyzer-malloc-leak]: leak of ‘_create_xauth_file_for_user(*file.username, &*file.path, & create_error)’
/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.
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:34: 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’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:394: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’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:395: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’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:395: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’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:396: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’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:396: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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:258: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’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:205: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’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:206: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’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:206: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’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:207: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’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:207:9: note: in expansion of macro ‘g_assert’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:25: included_from: Included from here.
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:322:9: note: in expansion of macro ‘g_debug’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:354:9: note: in expansion of macro ‘g_debug’
gdm-46.2-build/gdm-46.2/daemon/gdm-display-access-file.c:368:9: note: in expansion of macro ‘g_debug’
#  214|           }
#  215|   
#  216|->         *uid = passwd_entry->pw_uid;
#  217|           *gid = passwd_entry->pw_gid;
#  218|   

Error: CPPCHECK_WARNING: [#def10]
gdm-46.2-build/gdm-46.2/daemon/gdm-display.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-457): [#def11]
gdm-46.2-build/gdm-46.2/daemon/gdm-display.c: scope_hint: In function ‘handle_is_local’
gdm-46.2-build/gdm-46.2/daemon/gdm-display.c:1142:9: warning[-Wmaybe-uninitialized]: ‘is_local’ may be used uninitialized
# 1142 |         gdm_dbus_display_complete_is_local (skeleton, invocation, is_local);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gdm-46.2-build/gdm-46.2/daemon/gdm-display.c:1138:18: note: ‘is_local’ was declared here
# 1138 |         gboolean is_local;
#      |                  ^~~~~~~~
# 1140|           gdm_display_is_local (self, &is_local, NULL);
# 1141|   
# 1142|->         gdm_dbus_display_complete_is_local (skeleton, invocation, is_local);
# 1143|   
# 1144|           return TRUE;

Error: CPPCHECK_WARNING: [#def12]
gdm-46.2-build/gdm-46.2/daemon/gdm-launch-environment.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
gdm-46.2-build/gdm-46.2/daemon/gdm-local-display-factory.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
gdm-46.2-build/gdm-46.2/daemon/gdm-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
gdm-46.2-build/gdm-46.2/daemon/gdm-server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def16]
gdm-46.2-build/gdm-46.2/daemon/gdm-server.c:208:21: warning[deadcode.DeadStores]: Value stored to 'verbosity' during its initialization is never read
#  206|           gboolean debug = FALSE;
#  207|           const char *debug_options;
#  208|->         const char *verbosity = "";
#  209|   
#  210|           if (server->command != NULL) {

Error: COMPILER_WARNING: [#def17]
gdm-46.2-build/gdm-46.2/daemon/gdm-server.c:615:22: warning[-Warray-bounds=]: array subscript [2, 2147483647] is outside array bounds of ‘gchar *[1]’
#  615 |                 *argv[len++] = g_strdup (args[i]);
#      |                  ~~~~^~~~~~~
gdm-46.2-build/gdm-46.2/daemon/gdm-server.c: scope_hint: In function ‘gdm_server_start’
gdm-46.2-build/gdm-46.2/daemon/gdm-server.c:666:26: note: at offset [16, 17179869176] into object ‘argv’ of size 8
#  666 |         gchar          **argv = NULL;
#      |                          ^~~~
#  613|   
#  614|           for (i=0; i < count;i++) {
#  615|->                 *argv[len++] = g_strdup (args[i]);
#  616|           }
#  617|   

Error: COMPILER_WARNING: [#def18]
gdm-46.2-build/gdm-46.2/daemon/gdm-server.c:620:19: warning[-Warray-bounds=]: array subscript [2, 2147483647] is outside array bounds of ‘gchar *[1]’
#  620 |         argv[len] = NULL;
#      |                   ^
gdm-46.2-build/gdm-46.2/daemon/gdm-server.c: scope_hint: In function ‘gdm_server_start’
gdm-46.2-build/gdm-46.2/daemon/gdm-server.c:666:26: note: at offset [16, 17179869176] into object ‘argv’ of size 8
#  666 |         gchar          **argv = NULL;
#      |                          ^~~~
#  618|           *argc += count;
#  619|   
#  620|->         argv[len] = NULL;
#  621|           g_strfreev (args);
#  622|   }

Error: CLANG_WARNING: [#def19]
gdm-46.2-build/gdm-46.2/daemon/gdm-server.c:686:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
#  684|           }
#  685|   
#  686|->         if (argv[0] == NULL) {
#  687|                   g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
#  688|                                _("%s: Empty server command for display %s"),

Error: COMPILER_WARNING (CWE-252): [#def20]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-linux-auditor.c: scope_hint: In function ‘log_user_message’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-linux-auditor.c:77:17: warning[-Wunused-result]: ignoring return value of ‘audit_log_user_message’ declared with attribute ‘warn_unused_result’
#   77 |                 audit_log_user_message (linux_auditor->audit_fd, type,
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   78 |                                         buf, hostname, NULL, display_device,
#      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   79 |                                         result);
#      |                                         ~~~~~~~
#   75|           if (pw != NULL) {
#   76|                   g_snprintf (buf, sizeof (buf), "uid=%d", pw->pw_uid);
#   77|->                 audit_log_user_message (linux_auditor->audit_fd, type,
#   78|                                           buf, hostname, NULL, display_device,
#   79|                                           result);

Error: COMPILER_WARNING (CWE-252): [#def21]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-linux-auditor.c:82:17: warning[-Wunused-result]: ignoring return value of ‘audit_log_user_message’ declared with attribute ‘warn_unused_result’
#   82 |                 audit_log_user_message (linux_auditor->audit_fd, type,
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   83 |                                         buf, hostname, NULL, display_device,
#      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   84 |                                         result);
#      |                                         ~~~~~~~
#   80|           } else {
#   81|                   g_snprintf (buf, sizeof (buf), "acct=%s", username);
#   82|->                 audit_log_user_message (linux_auditor->audit_fd, type,
#   83|                                           buf, hostname, NULL, display_device,
#   84|                                           result);

Error: CPPCHECK_WARNING: [#def22]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-settings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c: scope_hint: In function ‘convert_to_utf8’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:718:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
/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’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:410:9: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:370:32: note: in definition of macro ‘g_debug’
/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.
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:715:24: note: in expansion of macro ‘g_strdup’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c: scope_hint: In function ‘convert_to_utf8’
#  716|   
#  717|                   p = utf8;
#  718|->                 while (*p != '\0' && !g_utf8_validate ((const char *)p, -1, (const char **)&q)) {
#  719|                           *q = '?';
#  720|                           p = q + 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c: scope_hint: In function ‘gdm_session_worker_pam_new_messages_handler.part.0’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:910:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘replies’
/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’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:410:9: note: in expansion of macro ‘g_assert’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:651:13: note: in expansion of macro ‘GDM_PAM_EXTENSION_MESSAGE_INVALID_TYPE’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:651:13: note: in expansion of macro ‘GDM_PAM_EXTENSION_MESSAGE_INVALID_TYPE’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:651:13: note: in expansion of macro ‘GDM_PAM_EXTENSION_MESSAGE_INVALID_TYPE’
gdm-46.2-build/gdm-46.2/pam-extensions/gdm-pam-extensions-common.h:70:83: note: in definition of macro ‘GDM_PAM_EXTENSION_MESSAGE_MATCH’
#  908|                   }
#  909|   
#  910|->                 replies[i].resp = response;
#  911|                   replies[i].resp_retcode = PAM_SUCCESS;
#  912|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:919:39: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘replies’
/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’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:410:9: note: in expansion of macro ‘g_assert’
#  917|           if (return_value != PAM_SUCCESS || responses == NULL) {
#  918|                   for (i = 0; i < number_of_messages; i++) {
#  919|->                         if (replies[i].resp != NULL) {
#  920|                                   memset (replies[i].resp, 0, strlen (replies[i].resp));
#  921|                                   free (replies[i].resp);

Error: COMPILER_WARNING (CWE-252): [#def27]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c: scope_hint: In function ‘jump_to_vt’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:1073:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
# 1073 |                 write (worker->session_tty_fd,
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1074 |                        clear_screen_escape_sequence,
#      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1075 |                        sizeof (clear_screen_escape_sequence));
#      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1071|   
# 1072|                   /* let's make sure the new VT is clear */
# 1073|->                 write (worker->session_tty_fd,
# 1074|                          clear_screen_escape_sequence,
# 1075|                          sizeof (clear_screen_escape_sequence));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c: scope_hint: In function ‘gdm_session_worker_start_session’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:1902:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘_open_program_session_log(*worker.log_file)’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:46: included_from: Included from here.
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:1960:22: note: in expansion of macro ‘g_open’
# 1900|           int i;
# 1901|   
# 1902|->         for (i = n_copies - 1; i > 0; i--) {
# 1903|                   g_autofree char *name_n = NULL;
# 1904|                   g_autofree char *name_n1 = NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c: scope_hint: In function ‘gdm_session_worker_start_session’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:2089:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
# 2087|                           needs_controlling_terminal = TRUE;
# 2088|                   } else {
# 2089|->                         stdin_fd = open ("/dev/null", O_RDWR);
# 2090|                           dup2 (stdin_fd, STDIN_FILENO);
# 2091|                           close (stdin_fd);

Error: GCC_ANALYZER_WARNING: [#def30]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:2090:25: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 2)’
# 2088|                   } else {
# 2089|                           stdin_fd = open ("/dev/null", O_RDWR);
# 2090|->                         dup2 (stdin_fd, STDIN_FILENO);
# 2091|                           close (stdin_fd);
# 2092|                   }

Error: GCC_ANALYZER_WARNING: [#def31]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:2099:37: warning[-Wanalyzer-fd-use-without-check]: ‘dup’ on possibly invalid file descriptor ‘_open_program_session_log(*worker.log_file)’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:1960:22: note: in expansion of macro ‘g_open’
# 2097|                   if (!has_journald && worker->is_program_session) {
# 2098|                           stdout_fd = _open_program_session_log (worker->log_file);
# 2099|->                         stderr_fd = dup (stdout_fd);
# 2100|                   }
# 2101|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:2174:45: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
/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’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:2135:17: note: in expansion of macro ‘g_assert’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:1491:16: note: in expansion of macro ‘g_strdup’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c: scope_hint: In function ‘gdm_session_worker_start_session’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:1491:16: note: in expansion of macro ‘g_strdup’
# 2172|                                   }
# 2173|                           } else {
# 2174|->                                 stdout_fd = open ("/dev/null", O_RDWR);
# 2175|                                   stderr_fd = dup (stdout_fd);
# 2176|                           }

Error: GCC_ANALYZER_WARNING: [#def33]
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:2175:45: warning[-Wanalyzer-fd-use-without-check]: ‘dup’ on possibly invalid file descriptor ‘open("/dev/null", 2)’
/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’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:2135:17: note: in expansion of macro ‘g_assert’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:1491:16: note: in expansion of macro ‘g_strdup’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c: scope_hint: In function ‘gdm_session_worker_start_session’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:1491:16: note: in expansion of macro ‘g_strdup’
# 2173|                           } else {
# 2174|                                   stdout_fd = open ("/dev/null", O_RDWR);
# 2175|->                                 stderr_fd = dup (stdout_fd);
# 2176|                           }
# 2177|                   }

Error: CPPCHECK_WARNING: [#def34]
gdm-46.2-build/gdm-46.2/daemon/gdm-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
gdm-46.2-build/gdm-46.2/daemon/gdm-wayland-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
gdm-46.2-build/gdm-46.2/daemon/gdm-x-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def37]
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def38]
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c: scope_hint: In function ‘gdm_xdmcp_send_willing’
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c:838:25: warning[-Wanalyzer-null-argument]: use of NULL ‘status.data’ 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.
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c:46: 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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c:2958:12: note: in expansion of macro ‘G_UNLIKELY’
/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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c:2964:12: note: in expansion of macro ‘G_UNLIKELY’
/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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c:2969:12: note: in expansion of macro ‘G_UNLIKELY’
/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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c:2969:12: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:370:32: note: in definition of macro ‘g_debug’
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c: scope_hint: In function ‘gdm_xdmcp_send_willing’
/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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c:1036:12: note: in expansion of macro ‘G_UNLIKELY’
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c: scope_hint: In function ‘gdm_xdmcp_send_willing’
/usr/include/glib-2.0/glib/gmessages.h:370:32: note: in definition of macro ‘g_debug’
/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.
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c:835:41: note: in expansion of macro ‘g_strdup’
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c: scope_hint: In function ‘gdm_xdmcp_send_willing’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  836|           }
#  837|   
#  838|->         status.length = strlen ((char *) status.data);
#  839|   
#  840|           header.opcode   = (CARD16) WILLING;

Error: CPPCHECK_WARNING (CWE-457): [#def39]
gdm-46.2-build/gdm-46.2/daemon/gdm-xdmcp-display-factory.c:2957: error[uninitvar]: Uninitialized variable: clnt_ss
# 2955|           ss_len = (int) sizeof (clnt_ss);
# 2956|   
# 2957|->         res = XdmcpFill (factory->socket_fd, &factory->buf, (XdmcpNetaddr)&clnt_ss, &ss_len);
# 2958|           if G_UNLIKELY (! res) {
# 2959|                   g_debug ("GdmXdmcpDisplayFactory: Could not create XDMCP buffer!");

Error: CPPCHECK_WARNING: [#def40]
gdm-46.2-build/gdm-46.2/daemon/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
gdm-46.2-build/gdm-46.2/daemon/test-session-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def42]
gdm-46.2-build/gdm-46.2/libgdm/gdm-sessions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
gdm-46.2-build/gdm-46.2/pam-extensions/gdm-pam-extensions.h:24: included_from: Included from here.
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:69: included_from: Included from here.
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c: scope_hint: In function ‘gdm_session_worker_process_extended_pam_message’
gdm-46.2-build/gdm-46.2/pam-extensions/gdm-choice-list-pam-extension.h:66:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list_response’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:662:17: note: in expansion of macro ‘GDM_PAM_EXTENSION_CHOICE_LIST_RESPONSE_INIT’
/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.
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:44: 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:276:49: note: in expansion of macro ‘G_LIKELY’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:410:9: note: in expansion of macro ‘g_assert’
gdm-46.2-build/gdm-46.2/pam-extensions/gdm-choice-list-pam-extension.h:23: included_from: Included from here.
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:651:13: note: in expansion of macro ‘GDM_PAM_EXTENSION_MESSAGE_INVALID_TYPE’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:651:13: note: in expansion of macro ‘GDM_PAM_EXTENSION_MESSAGE_INVALID_TYPE’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:651:13: note: in expansion of macro ‘GDM_PAM_EXTENSION_MESSAGE_INVALID_TYPE’
gdm-46.2-build/gdm-46.2/pam-extensions/gdm-pam-extensions-common.h:70:83: note: in definition of macro ‘GDM_PAM_EXTENSION_MESSAGE_MATCH’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:662:17: note: in expansion of macro ‘GDM_PAM_EXTENSION_CHOICE_LIST_RESPONSE_INIT’
#   64|           GDM_PAM_EXTENSION_LOOK_UP_TYPE (GDM_PAM_EXTENSION_CHOICE_LIST, &response->header.type); \
#   65|           response->header.length = htobe32 (GDM_PAM_EXTENSION_CHOICE_LIST_RESPONSE_SIZE); \
#   66|->         response->key = NULL; \
#   67|   }
#   68|   #define GDM_PAM_EXTENSION_REPLY_TO_CHOICE_LIST_RESPONSE(reply) ((GdmPamExtensionChoiceListResponse *) (void *) reply->resp)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
gdm-46.2-build/gdm-46.2/pam-extensions/gdm-pam-extensions.h:25: included_from: Included from here.
gdm-46.2-build/gdm-46.2/pam-extensions/gdm-custom-json-pam-extension.h:56:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(88)’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:679:17: note: in expansion of macro ‘GDM_PAM_EXTENSION_CUSTOM_JSON_RESPONSE_INIT’
/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’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:410:9: note: in expansion of macro ‘g_assert’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:651:13: note: in expansion of macro ‘GDM_PAM_EXTENSION_MESSAGE_INVALID_TYPE’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:651:13: note: in expansion of macro ‘GDM_PAM_EXTENSION_MESSAGE_INVALID_TYPE’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:651:13: note: in expansion of macro ‘GDM_PAM_EXTENSION_MESSAGE_INVALID_TYPE’
gdm-46.2-build/gdm-46.2/pam-extensions/gdm-pam-extensions-common.h:70:83: note: in definition of macro ‘GDM_PAM_EXTENSION_MESSAGE_MATCH’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:673:20: note: in expansion of macro ‘GDM_PAM_EXTENSION_MESSAGE_MATCH’
gdm-46.2-build/gdm-46.2/daemon/gdm-session-worker.c:679:17: note: in expansion of macro ‘GDM_PAM_EXTENSION_CUSTOM_JSON_RESPONSE_INIT’
#   54|           memcpy ((char *)(response)->protocol_name, (proto_name), proto_len); \
#   55|           ((char *)((response)->protocol_name))[proto_len] = '\0'; \
#   56|->         (response)->version = (proto_version); \
#   57|           (response)->json = NULL; \
#   58|   }

Error: CPPCHECK_WARNING: [#def45]
gdm-46.2-build/gdm-46.2/redhat-linux-build/daemon/gdm-dbus-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def46]
gdm-46.2-build/gdm-46.2/redhat-linux-build/daemon/gdm-display-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def47]
gdm-46.2-build/gdm-46.2/redhat-linux-build/daemon/gdm-local-display-factory-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def48]
gdm-46.2-build/gdm-46.2/redhat-linux-build/daemon/gdm-local-display-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
gdm-46.2-build/gdm-46.2/redhat-linux-build/daemon/gdm-manager-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
gdm-46.2-build/gdm-46.2/redhat-linux-build/daemon/gdm-remote-display-factory-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
gdm-46.2-build/gdm-46.2/redhat-linux-build/daemon/gdm-remote-display-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
gdm-46.2-build/gdm-46.2/redhat-linux-build/daemon/gdm-session-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
gdm-46.2-build/gdm-46.2/redhat-linux-build/daemon/gdm-session-worker-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
gdm-46.2-build/gdm-46.2/redhat-linux-build/libgdm/gdm-client-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
gdm-46.2-build/gdm-46.2/redhat-linux-build/libgdm/gdm-manager-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
gdm-46.2-build/gdm-46.2/redhat-linux-build/tmp-introspectbsx14f_n/Gdm-1.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def57]
gdm-46.2-build/gdm-46.2/redhat-linux-build/tmp-introspectbsx14f_n/Gdm-1.0.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: [#def58]
gdm-46.2-build/gdm-46.2/utils/gdm-config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def59]
gdm-46.2-build/gdm-46.2/utils/gdm-config.c:431:32: warning[unix.Malloc]: Potential leak of memory pointed to by 'cmd_entries'
#  429|                   case COMMAND_HELP:
#  430|                   case COMMAND_UNKNOWN:
#  431|->                         return NULL;
#  432|                   default:
#  433|                           g_assert_not_reached ();

Error: COMPILER_WARNING (CWE-477): [#def60]
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c: scope_hint: In function ‘screenshot_grab_lock’
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:77:9: warning[-Wdeprecated-declarations]: ‘gdk_pointer_grab’ is deprecated: Use 'gdk_device_grab' instead
/usr/include/gtk-3.0/gdk/gdk.h:50: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:30: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkmain.h:86:15: note: declared here
#   75|   
#   76|           cursor = gdk_cursor_new_for_display (gdk_display_get_default (), GDK_WATCH);
#   77|->         gdk_pointer_grab (gtk_widget_get_window (selection_window), FALSE, 0, NULL,
#   78|                             cursor, GDK_CURRENT_TIME);
#   79|           g_object_unref (cursor);

Error: COMPILER_WARNING (CWE-477): [#def61]
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:85:9: warning[-Wdeprecated-declarations]: ‘gdk_flush’ is deprecated: Use 'gdk_display_flush' instead
/usr/include/gtk-3.0/gdk/gdkmain.h:124:6: note: declared here
#   83|    out:
#   84|           XUngrabServer (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
#   85|->         gdk_flush ();
#   86|   
#   87|           return result;

Error: COMPILER_WARNING (CWE-477): [#def62]
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c: scope_hint: In function ‘screenshot_release_lock’
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:98:9: warning[-Wdeprecated-declarations]: ‘gdk_flush’ is deprecated: Use 'gdk_display_flush' instead
/usr/include/gtk-3.0/gdk/gdkmain.h:124:6: note: declared here
#   96|                   selection_window = NULL;
#   97|           }
#   98|->         gdk_flush ();
#   99|   }
#  100|   

Error: COMPILER_WARNING (CWE-477): [#def63]
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c: scope_hint: In function ‘screenshot_get_pixbuf’
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:140:9: warning[-Wdeprecated-declarations]: ‘gdk_screen_width’ is deprecated
/usr/include/gtk-3.0/gdk/gdkmain.h:108:6: note: declared here
#  138|           }
#  139|   
#  140|->         if (x_orig + width > gdk_screen_width ()) {
#  141|                   width = gdk_screen_width () - x_orig;
#  142|           }

Error: COMPILER_WARNING (CWE-477): [#def64]
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:141:17: warning[-Wdeprecated-declarations]: ‘gdk_screen_width’ is deprecated
/usr/include/gtk-3.0/gdk/gdkmain.h:108:6: note: declared here
#  139|   
#  140|           if (x_orig + width > gdk_screen_width ()) {
#  141|->                 width = gdk_screen_width () - x_orig;
#  142|           }
#  143|           if (y_orig + height > gdk_screen_height ()) {

Error: COMPILER_WARNING (CWE-477): [#def65]
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:143:9: warning[-Wdeprecated-declarations]: ‘gdk_screen_height’ is deprecated
/usr/include/gtk-3.0/gdk/gdkmain.h:110:6: note: declared here
#  141|                   width = gdk_screen_width () - x_orig;
#  142|           }
#  143|->         if (y_orig + height > gdk_screen_height ()) {
#  144|                   height = gdk_screen_height () - y_orig;
#  145|           }

Error: COMPILER_WARNING (CWE-477): [#def66]
gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:144:17: warning[-Wdeprecated-declarations]: ‘gdk_screen_height’ is deprecated
/usr/include/gtk-3.0/gdk/gdkmain.h:110:6: note: declared here
#  142|           }
#  143|           if (y_orig + height > gdk_screen_height ()) {
#  144|->                 height = gdk_screen_height () - y_orig;
#  145|           }
#  146|   

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-195.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegdm-46.2-1.fc41
store-results-to/tmp/tmp94briwox/gdm-46.2-1.fc41.tar.xz
time-created2024-07-03 12:47:46
time-finished2024-07-03 12:49:54
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp94briwox/gdm-46.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp94briwox/gdm-46.2-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9