gnome-control-center-47.1.1-1.fc42
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c: scope_hint: In function ‘get_portal_permissions’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:226:11: warning[-Wanalyzer-null-argument]: use of NULL ‘app_id’ where non-null expected
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c: scope_hint: In function ‘get_portal_permissions’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c: scope_hint: In function ‘get_portal_permissions’
/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/gi18n.h:23: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:25: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:385:17: note: in expansion of macro ‘GPOINTER_TO_INT’
/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.
/usr/include/malcontent-0/libmalcontent/app-filter.h:26: included_from: Included from here.
/usr/include/malcontent-0/libmalcontent/malcontent.h:25: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:27: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
/usr/include/gtk-4.0/gtk/gtkwidget.h:44:44: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:939:31: note: in expansion of macro ‘GTK_WIDGET’
/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.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:706:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/gobject/gobject.h:767:32: note: in definition of macro ‘g_set_object’
/usr/include/glib-2.0/gobject/gobject.h:770:50: note: in definition of macro ‘g_set_object’
/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.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:448:15: note: in expansion of macro ‘g_strdup’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c: scope_hint: In function ‘get_portal_permissions’
/usr/include/glib-2.0/gobject/gobject.h:770:50: note: in definition of macro ‘g_set_object’
/usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c: scope_hint: In function ‘munge_app_id’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:457:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:1464:3: note: in expansion of macro ‘g_clear_pointer’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:1465:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/gobject/gobject.h:767:32: note: in definition of macro ‘g_set_object’
/usr/include/glib-2.0/gobject/gobject.h:770:50: note: in definition of macro ‘g_set_object’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c:448:15: note: in expansion of macro ‘g_strdup’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/cc-applications-panel.c: scope_hint: In function ‘munge_app_id’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def3]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/utils.c: scope_hint: In function ‘get_app_id’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/applications/utils.c:254:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Error: COMPILER_WARNING (CWE-457): [#def4]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/cc-number-row.c: scope_hint: In function ‘number_row_settings_changed_cb’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/cc-number-row.c:680:14: warning[-Wmaybe-uninitialized]: ‘value’ may be used uninitialized
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/cc-number-row.c:656:9: note: ‘value’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
/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.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/hostname-helper.c:19: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/hostname-helper.c: scope_hint: In function ‘pretty_hostname_to_ssid’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/hostname-helper.c:222:27: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250: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’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/hostname-helper.c:222:17: note: in expansion of macro ‘g_assert’
/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.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/hostname-helper.c:221:30: note: in expansion of macro ‘g_strdup’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/hostname-helper.c: scope_hint: In function ‘pretty_hostname_to_ssid’
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250: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’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/hostname-helper.c:222:17: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250: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’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/common/hostname-helper.c:222:17: note: in expansion of macro ‘g_assert’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/keyboard/cc-input-list-box.c: scope_hint: In function ‘add_input_sources_from_localed’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/keyboard/cc-input-list-box.c:623:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/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/gnome-desktop-4.0/libgnome-desktop/gnome-xkb-info.h:31: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/keyboard/cc-input-list-box.c:26: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:942:23: note: in definition of macro ‘MIN’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/keyboard/cc-keyboard-item.c: scope_hint: In function ‘translate_above_tab’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/keyboard/cc-keyboard-item.c:543:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/keyboard/cc-xkb-modifier-page.c: scope_hint: In function ‘update_active_radio’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/keyboard/cc-xkb-modifier-page.c:104:83: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/keyboard/cc-xkb-modifier-page.c: scope_hint: In function ‘xcb_modifier_transform_binding_to_label’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/keyboard/cc-xkb-modifier-page.c:332:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entry’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/network/connection-editor/ce-page-ethernet.c: scope_hint: In function ‘mtu_output_cb’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/network/connection-editor/ce-page-ethernet.c:73:13: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ 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/gi18n.h:23: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/network/connection-editor/ce-page-ethernet.c:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/network/connection-editor/ce-page-ethernet.c:69:33: note: in expansion of macro ‘_’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/network/connection-editor/ce-page-ethernet.c:69:23: note: in expansion of macro ‘g_strdup’
/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.
/usr/include/libnm/NetworkManager.h:11: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/network/connection-editor/ce-page-ethernet.c:26: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/network/connection-editor/ce-page-ethernet.c: scope_hint: In function ‘mtu_output_cb’
/usr/include/glib-2.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
/usr/include/gtk-4.0/gtk/gtkeditable.h:38:40: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/network/connection-editor/ce-page-ethernet.c:73:49: note: in expansion of macro ‘GTK_EDITABLE’
/usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def11]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c: scope_hint: In function ‘app_info_get_id’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c:364:7: warning[-Wanalyzer-null-argument]: use of NULL ‘ret’ where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/gtk-4.0/gtk/css/gtkcss.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:29: included_from: Included from here.
/usr/include/libadwaita-1/adwaita.h:9: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c:22: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c:361:7: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c:361:19: note: in expansion of macro ‘g_str_has_suffix’
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c:361:7: note: in expansion of macro ‘G_UNLIKELY’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c:361:19: note: in expansion of macro ‘g_str_has_suffix’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c:361:7: note: in expansion of macro ‘G_UNLIKELY’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c: scope_hint: In function ‘process_app_info’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c:386:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def13]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c: scope_hint: In function ‘select_app’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/notifications/cc-notifications-panel.c:474:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def14]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/printers/pp-maintenance-command.c: scope_hint: In function ‘_pp_maintenance_command_execute_thread’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/printers/pp-maintenance-command.c:232:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file’ where non-null expected
<built-in>: note: argument 4 of ‘__builtin_fwrite’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/sharing/file-share-properties.c: scope_hint: In function ‘file_share_write_out_password’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/sharing/file-share-properties.c:50:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_build_filename(g_get_user_config_dir(), "user-share", "passwd", 0), "w")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/sharing/file-share-properties.c:50:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_build_filename(g_get_user_config_dir(), "user-share", "passwd", 0), "w")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/sharing/file-share-properties.c:52:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_build_filename(g_get_user_config_dir(), "user-share", "passwd", 0), "w")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/sharing/file-share-properties.c:52:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_build_filename(g_get_user_config_dir(), "user-share", "passwd", 0), "w")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c: scope_hint: In function ‘tz_load_db’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:61:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:61:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:68:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:68:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:70:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:70:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:78:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:78:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c: scope_hint: In function ‘tz_location_get_base_utc_offset’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:215:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250: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’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:235:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/datetime/tz.c:235:9: note: in expansion of macro ‘g_return_val_if_fail’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/remote-desktop/cc-remote-login-page.c: scope_hint: In function ‘on_tls_certificate_generated’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/remote-desktop/cc-remote-login-page.c:257:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_build_filename(*(CcRemoteLoginPage *)user_data.temp_cert_dir, "rdp-tls.crt", 0), 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/remote-desktop/cc-remote-login-page.c:258:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_build_filename(*(CcRemoteLoginPage *)user_data.temp_cert_dir, "rdp-tls.key", 0), 0)’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def30]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/users/cc-fingerprint-dialog.c: scope_hint: In function ‘fingerprint_menu_button’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/users/cc-fingerprint-dialog.c:398:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘button’
/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/gi18n.h:23: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/users/cc-fingerprint-dialog.c:23: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250: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’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/users/cc-fingerprint-dialog.c:339:3: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/users/cc-fingerprint-dialog.c:339:3: note: in expansion of macro ‘g_return_val_if_fail’
Error: CPPCHECK_WARNING (CWE-457): [#def31]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/panels/system/users/cc-users-page.c:221: warning[uninitvar]: Uninitialized variable: n_users
Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c:317:13: warning[-Wanalyzer-null-argument]: use of NULL ‘profile_name’ where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.h:22: included_from: Included from here.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c:23: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250: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’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c:480:9: 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’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.h:30:47: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c:480:31: note: in expansion of macro ‘GVC_IS_MIXER_UI_DEVICE’
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250: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’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c:480:9: 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’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.h:30:47: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c:480:31: note: in expansion of macro ‘GVC_IS_MIXER_UI_DEVICE’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250: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’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c:481:9: 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.
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c:318:24: note: in expansion of macro ‘g_strdup’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c:318:24: note: in expansion of macro ‘g_strdup’
gnome-control-center-47.1.1-build/gnome-control-center-47.1.1/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
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-190.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | gnome-control-center-47.1.1-1.fc42 |
store-results-to | /tmp/tmp128g3q_q/gnome-control-center-47.1.1-1.fc42.tar.xz |
time-created | 2024-11-13 00:10:22 |
time-finished | 2024-11-13 00:20:00 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp128g3q_q/gnome-control-center-47.1.1-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp128g3q_q/gnome-control-center-47.1.1-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |