Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-9001): [#def1]
/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-46.0.1-build/gnome-control-center-46.0.1/panels/system/remote-desktop/cc-desktop-sharing-page.h:22: included_from: Included from here.
gnome-control-center-46.0.1-build/gnome-control-center-46.0.1/panels/system/remote-desktop/cc-desktop-sharing-page.c:23: included_from: Included from here.
gnome-control-center-46.0.1-build/gnome-control-center-46.0.1/panels/system/remote-desktop/cc-desktop-sharing-page.c: scope_hint: In function ‘cc_desktop_sharing_page_dispose’
gnome-control-center-46.0.1-build/gnome-control-center-46.0.1/panels/system/remote-desktop/cc-desktop-sharing-page.c:508:20: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
#  508 |   g_clear_pointer ((GtkWindow **) &self->fingerprint_dialog, gtk_window_destroy);
/usr/include/glib-2.0/glib/gmacros.h:871:47: note: in definition of macro ‘G_STATIC_ASSERT’
#  871 | #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
#      |                                               ^~~~
gnome-control-center-46.0.1-build/gnome-control-center-46.0.1/panels/system/remote-desktop/cc-desktop-sharing-page.c:508:3: note: in expansion of macro ‘g_clear_pointer’
#  508 |   g_clear_pointer ((GtkWindow **) &self->fingerprint_dialog, gtk_window_destroy);
#      |   ^~~~~~~~~~~~~~~
#  506|     g_clear_object (&self->cancellable);
#  507|   
#  508|->   g_clear_pointer ((GtkWindow **) &self->fingerprint_dialog, gtk_window_destroy);
#  509|     g_clear_handle_id (&self->store_credentials_id, g_source_remove);
#  510|   

Error: COMPILER_WARNING (CWE-9001): [#def2]
/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-46.0.1-build/gnome-control-center-46.0.1/panels/system/remote-desktop/cc-remote-session-page.c:23: included_from: Included from here.
gnome-control-center-46.0.1-build/gnome-control-center-46.0.1/panels/system/remote-desktop/cc-remote-session-page.c: scope_hint: In function ‘cc_remote_session_page_dispose’
gnome-control-center-46.0.1-build/gnome-control-center-46.0.1/panels/system/remote-desktop/cc-remote-session-page.c:536:20: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
#  536 |   g_clear_pointer ((GtkWindow **) &self->fingerprint_dialog, gtk_window_destroy);
/usr/include/glib-2.0/glib/gmacros.h:871:47: note: in definition of macro ‘G_STATIC_ASSERT’
#  871 | #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
#      |                                               ^~~~
gnome-control-center-46.0.1-build/gnome-control-center-46.0.1/panels/system/remote-desktop/cc-remote-session-page.c:536:3: note: in expansion of macro ‘g_clear_pointer’
#  536 |   g_clear_pointer ((GtkWindow **) &self->fingerprint_dialog, gtk_window_destroy);
#      |   ^~~~~~~~~~~~~~~
#  534|     g_clear_object (&self->permission);
#  535|   
#  536|->   g_clear_pointer ((GtkWindow **) &self->fingerprint_dialog, gtk_window_destroy);
#  537|     g_clear_object (&self->rdp_server);
#  538|   

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
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-55.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegnome-control-center-46.2-1.fc41
diffbase-store-results-to/tmp/tmpcgnsv3qp/gnome-control-center-46.2-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:59:40
diffbase-time-finished2024-07-03 13:09:33
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcgnsv3qp/gnome-control-center-46.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpcgnsv3qp/gnome-control-center-46.2-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-55.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegnome-control-center-46.0.1-1.fc40
store-results-to/tmp/tmpbp8bkbc2/gnome-control-center-46.0.1-1.fc40.tar.xz
time-created2024-07-03 12:49:03
time-finished2024-07-03 12:59:28
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpbp8bkbc2/gnome-control-center-46.0.1-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpbp8bkbc2/gnome-control-center-46.0.1-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9