gnome-session-48.0-1.fc43
List of Findings
Error: COMPILER_WARNING (CWE-477): [#def1]
gnome-session-48.0/gnome-session/gsm-app.c:40:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/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.
gnome-session-48.0/gnome-session/gsm-app.c:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def2]
gnome-session-48.0/gnome-session/gsm-app.c: scope_hint: In function ‘gsm_app_restart’
gnome-session-48.0/gnome-session/gsm-app.c:516:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def3]
gnome-session-48.0/gnome-session/gsm-app.c:519:9: warning[-Wdeprecated-declarations]: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead
/usr/include/glib-2.0/glib/giochannel.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gmain.h:825:8: note: declared here
Error: COMPILER_WARNING: [#def4]
gnome-session-48.0/gnome-session/gsm-client.c:530:1: warning[-Wenum-int-mismatch]: conflicting types for ‘gsm_client_query_end_session’ due to enum/integer mismatch; have ‘gboolean(GsmClient *, GsmClientEndSessionFlag, GError **)’ {aka ‘int(struct _GsmClient *, GsmClientEndSessionFlag, struct _GError **)’}
gnome-session-48.0/gnome-session/gsm-client.c:22: included_from: Included from here.
gnome-session-48.0/gnome-session/gsm-client.h:115:23: note: previous declaration of ‘gsm_client_query_end_session’ with type ‘gboolean(GsmClient *, guint, GError **)’ {aka ‘int(struct _GsmClient *, unsigned int, struct _GError **)’}
Error: COMPILER_WARNING: [#def5]
gnome-session-48.0/gnome-session/gsm-client.c:540:1: warning[-Wenum-int-mismatch]: conflicting types for ‘gsm_client_end_session’ due to enum/integer mismatch; have ‘gboolean(GsmClient *, GsmClientEndSessionFlag, GError **)’ {aka ‘int(struct _GsmClient *, GsmClientEndSessionFlag, struct _GError **)’}
gnome-session-48.0/gnome-session/gsm-client.h:112:23: note: previous declaration of ‘gsm_client_end_session’ with type ‘gboolean(GsmClient *, guint, GError **)’ {aka ‘int(struct _GsmClient *, unsigned int, struct _GError **)’}
Error: COMPILER_WARNING: [#def6]
gnome-session-48.0/gnome-session/gsm-fail-whale.c:27: included_from: Included from here.
gnome-session-48.0/gnome-session/gsm-fail-whale.h:18: warning[-Wheader-guard]: header guard ‘__GSM_FAIL_WHALE_H___’ followed by ‘#define’ of a different macro
gnome-session-48.0/gnome-session/gsm-fail-whale.h:19: note: ‘__GSM_FAIL_WHALE_H__’ is defined here; did you mean ‘__GSM_FAIL_WHALE_H___’?
Error: COMPILER_WARNING (CWE-477): [#def7]
gnome-session-48.0/gnome-session/gsm-inhibitor.c: scope_hint: In function ‘gsm_inhibitor_class_init’
gnome-session-48.0/gnome-session/gsm-inhibitor.c:604:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: COMPILER_WARNING (CWE-252): [#def8]
gnome-session-48.0/gnome-session/gsm-manager.c: scope_hint: In function ‘do_query_end_session_exit’
gnome-session-48.0/gnome-session/gsm-manager.c:3926:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def9]
gnome-session-48.0/gnome-session/gsm-manager.c:3936:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-477): [#def10]
gnome-session-48.0/gnome-session/gsm-presence.c: scope_hint: In function ‘gsm_presence_class_init’
gnome-session-48.0/gnome-session/gsm-presence.c:530:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def11]
gnome-session-48.0/gnome-session/gsm-shell-extensions.c: scope_hint: In function ‘gsm_shell_extensions_class_init’
gnome-session-48.0/gnome-session/gsm-shell-extensions.c:74:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: 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.
gnome-session-48.0/gnome-session/gsm-shell-extensions.c:25: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def12]
gnome-session-48.0/gnome-session/gsm-shell.c: scope_hint: In function ‘gsm_shell_class_init’
gnome-session-48.0/gnome-session/gsm-shell.c:182:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
gnome-session-48.0/gnome-session/gsm-shell.c:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def13]
gnome-session-48.0/gnome-session/gsm-store.c: scope_hint: In function ‘gsm_store_class_init’
gnome-session-48.0/gnome-session/gsm-store.c:360:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
gnome-session-48.0/gnome-session/gsm-store.c:30: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def14]
gnome-session-48.0/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_class_init’
gnome-session-48.0/gnome-session/gsm-systemd.c:163:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
gnome-session-48.0/gnome-session/gsm-systemd.h:26: included_from: Included from here.
gnome-session-48.0/gnome-session/gsm-systemd.c:22: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def15]
gnome-session-48.0/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_can_switch_user’
gnome-session-48.0/gnome-session/gsm-systemd.c:592:9: warning[-Wdeprecated-declarations]: ‘sd_seat_can_multi_session’ is deprecated
gnome-session-48.0/gnome-session/gsm-systemd.c:31: included_from: Included from here.
/usr/include/systemd/sd-login.h:214:5: note: declared here
Error: COMPILER_WARNING (CWE-704): [#def16]
gnome-session-48.0/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_set_inhibitors’
gnome-session-48.0/gnome-session/gsm-systemd.c:958:52: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘gsm_systemd_call_inhibit’ discards ‘const’ qualifier from pointer target type
gnome-session-48.0/gnome-session/gsm-systemd.c:918:39: note: expected ‘char *’ but argument is of type ‘const gchar *’ {aka ‘const char *’}
Error: COMPILER_WARNING (CWE-704): [#def17]
gnome-session-48.0/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_reacquire_inhibitors’
gnome-session-48.0/gnome-session/gsm-systemd.c:970:52: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘gsm_systemd_call_inhibit’ discards ‘const’ qualifier from pointer target type
gnome-session-48.0/gnome-session/gsm-systemd.c:918:39: note: expected ‘char *’ but argument is of type ‘const gchar *’ {aka ‘const char *’}
Error: COMPILER_WARNING (CWE-477): [#def18]
gnome-session-48.0/gnome-session/gsm-xsmp-client.c: scope_hint: In function ‘gsm_xsmp_client_class_init’
gnome-session-48.0/gnome-session/gsm-xsmp-client.c:1041:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: CPPCHECK_WARNING (CWE-476): [#def19]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:424: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def20]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:425: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def21]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:426: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def22]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:427: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def23]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:428: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def24]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:429: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def25]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:430: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def26]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:435: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def27]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:436: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def28]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:437: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def29]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:438: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: CPPCHECK_WARNING (CWE-476): [#def30]
gnome-session-48.0/gnome-session/gsm-xsmp-server.c:439: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_entry
Error: COMPILER_WARNING (CWE-477): [#def31]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-app.c:40:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
Error: COMPILER_WARNING (CWE-477): [#def32]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-app.c:516:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
Error: COMPILER_WARNING (CWE-477): [#def33]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-app.c:519:9: warning[-Wdeprecated-declarations]: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead
Error: COMPILER_WARNING: [#def34]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-inhibitor.c:243:27: warning[warning]: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def35]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-inhibitor.c:604:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
Error: COMPILER_WARNING: [#def36]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-presence.c:396:26: warning[warning]: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def37]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-presence.c:530:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def38]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-shell-extensions.c:74:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
Error: COMPILER_WARNING: [#def39]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-shell-extensions.c:169:16: warning[warning]: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def40]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-shell.c:182:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
Error: COMPILER_WARNING: [#def41]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-shell.c:222:23: warning[warning]: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def42]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-store.c:360:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
Error: COMPILER_WARNING: [#def43]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-store.c:374:23: warning[warning]: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def44]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-systemd.c:163:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
Error: COMPILER_WARNING: [#def45]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-systemd.c:373:25: warning[warning]: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def46]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-systemd.c:592:9: warning[-Wdeprecated-declarations]: ‘sd_seat_can_multi_session’ is deprecated
Error: COMPILER_WARNING (CWE-704): [#def47]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-systemd.c:958:52: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘gsm_systemd_call_inhibit’ discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def48]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-systemd.c:970:52: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘gsm_systemd_call_inhibit’ discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING: [#def49]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-xsmp-client.c:199:24: warning[warning]: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def50]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-xsmp-client.c:1041:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-xsmp-server.c:424:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘file_entry’
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-xsmp-server.c:422:22: acquire_memory: this call could return NULL
gnome-session-48.0/redhat-linux-build/../gnome-session/gsm-xsmp-server.c:424:9: danger: ‘file_entry’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-477): [#def52]
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-check-accelerated-gles-helper.c:103:9: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_push’ is deprecated: Use 'gdk_x11_display_error_trap_push' instead
Error: COMPILER_WARNING (CWE-477): [#def53]
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-check-accelerated-gles-helper.c:187:9: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_pop_ignored’ is deprecated: Use 'gdk_x11_display_error_trap_pop_ignored' instead
Error: COMPILER_WARNING: [#def54]
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-ctl.c:153:9: warning[warning]: Deprecated pre-processor symbol: replace with "g_main_loop_quit"
Error: GCC_ANALYZER_WARNING (CWE-910): [#def55]
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:316:7: warning[-Wanalyzer-fd-use-after-close]: ‘write’ on closed file descriptor ‘pipefd[1]’
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:279:6: branch_false: following ‘false’ branch...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:286:9: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:287:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:293:6: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:293:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:307:3: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:312:10: branch_false: following ‘false’ branch...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:316:7: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:317:7: release_resource: closed here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:318:10: branch_false: following ‘false’ branch...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:324:11: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:324:10: branch_false: following ‘false’ branch...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:327:39: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:327:14: branch_true: following ‘true’ branch...
branch_true: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:312:10: branch_false: following ‘false’ branch...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:316:7: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:316:7: danger: ‘write’ on closed file descriptor ‘pipefd[1]’; ‘close’ was at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def56]
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:317:7: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘pipefd[1]’
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:279:6: branch_false: following ‘false’ branch...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:286:9: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:287:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:293:6: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:293:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:307:3: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:312:10: branch_false: following ‘false’ branch...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:316:7: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:317:7: release_resource: first ‘close’ here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:318:10: branch_false: following ‘false’ branch...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:324:11: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:324:10: branch_false: following ‘false’ branch...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:327:39: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:327:14: branch_true: following ‘true’ branch...
branch_true: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:312:10: branch_false: following ‘false’ branch...
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:316:7: branch_false: ...to here
gnome-session-48.0/redhat-linux-build/../tools/gnome-session-inhibit.c:317:7: danger: second ‘close’ here; first ‘close’ was at [(12)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/11)
Error: COMPILER_WARNING (CWE-477): [#def57]
gnome-session-48.0/tools/gnome-session-check-accelerated-gles-helper.c: scope_hint: In function ‘get_gles_renderer’
gnome-session-48.0/tools/gnome-session-check-accelerated-gles-helper.c:103:9: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_push’ is deprecated: Use 'gdk_x11_display_error_trap_push' 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.
gnome-session-48.0/tools/gnome-session-check-accelerated-gles-helper.c:29: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkmain.h:70:32: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def58]
gnome-session-48.0/tools/gnome-session-check-accelerated-gles-helper.c:187:9: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_pop_ignored’ is deprecated: Use 'gdk_x11_display_error_trap_pop_ignored' instead
/usr/include/gtk-3.0/gdk/gdkmain.h:75:32: note: declared here
Error: COMPILER_WARNING (CWE-252): [#def59]
gnome-session-48.0/tools/gnome-session-ctl.c: scope_hint: In function ‘leader_fifo_io_cb’
gnome-session-48.0/tools/gnome-session-ctl.c:169:17: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def60]
gnome-session-48.0/tools/gnome-session-inhibit.c: scope_hint: In function ‘wait_for_child_app’
gnome-session-48.0/tools/gnome-session-inhibit.c:316:7: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-16.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | gnome-session-48.0-1.fc43 |
store-results-to | /tmp/tmpjb95qz5y/gnome-session-48.0-1.fc43.tar.xz |
time-created | 2025-04-25 12:45:30 |
time-finished | 2025-04-25 12:47:12 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpjb95qz5y/gnome-session-48.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpjb95qz5y/gnome-session-48.0-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |