Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
gnome-initial-setup-46.alpha-build/gnome-initial-setup-46.alpha/gnome-initial-setup/pages/account/gis-account-page-local.c: scope_hint: In function ‘avatar_callback’
gnome-initial-setup-46.alpha-build/gnome-initial-setup-46.alpha/gnome-initial-setup/pages/account/gis-account-page-local.c:215:5: warning[-Wdeprecated-declarations]: ‘gtk_image_set_from_pixbuf’ is deprecated: Use 'gtk_image_set_from_paintable' instead
/usr/include/gtk-4.0/gtk/gtkentry.h:40: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkimage.h:95:6: note: declared here
#  213|   
#  214|     if (rounded != NULL) {
#  215|->     gtk_image_set_from_pixbuf (GTK_IMAGE (page->avatar_image), rounded);
#  216|     }
#  217|     else {

Error: COMPILER_WARNING (CWE-477): [#def2]
gnome-initial-setup-46.alpha-build/gnome-initial-setup-46.alpha/gnome-initial-setup/pages/account/um-photo-dialog.c: scope_hint: In function ‘create_face_widget’
gnome-initial-setup-46.alpha-build/gnome-initial-setup-46.alpha/gnome-initial-setup/pages/account/um-photo-dialog.c:101:17: warning[-Wdeprecated-declarations]: ‘gtk_image_new_from_pixbuf’ is deprecated: Use 'gtk_image_new_from_paintable' instead
/usr/include/gtk-4.0/gtk/gtkentry.h:40: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtktreeview.h:27: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkcombobox.h:26: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:94: included_from: Included from here.
gnome-initial-setup-46.alpha-build/gnome-initial-setup-46.alpha/gnome-initial-setup/pages/account/um-photo-dialog.c:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkimage.h:78:12: note: declared here
#   99|   
#  100|           if (pixbuf != NULL)
#  101|->                 image = gtk_image_new_from_pixbuf (round_image (pixbuf));
#  102|           else
#  103|                   image = gtk_image_new ();

Error: COMPILER_WARNING (CWE-477): [#def3]
gnome-initial-setup-46.alpha-build/gnome-initial-setup-46.alpha/gnome-initial-setup/pages/account/um-utils.c: scope_hint: In function ‘round_image’
gnome-initial-setup-46.alpha-build/gnome-initial-setup-46.alpha/gnome-initial-setup/pages/account/um-utils.c:563:9: warning[-Wdeprecated-declarations]: ‘gdk_pixbuf_get_from_surface’ is deprecated
/usr/include/gtk-4.0/gdk/gdkcairo.h:25: included_from: Included from here.
/usr/include/gtk-4.0/gdk/gdk.h:30: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:30: included_from: Included from here.
/usr/include/gtk-4.0/gdk/deprecated/gdkpixbuf.h:37:12: note: declared here
#  561|           cairo_paint (cr);
#  562|   
#  563|->         dest = gdk_pixbuf_get_from_surface (surface, 0, 0, size, size);
#  564|           cairo_surface_destroy (surface);
#  565|           cairo_destroy (cr);

Error: CLANG_WARNING: [#def4]
gnome-initial-setup-46.alpha-build/gnome-initial-setup-46.alpha/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c:251:30: warning[core.NullDereference]: Array access (from variable 'layouts') results in a null pointer dereference
#  249|                   n = 0;
#  250|   
#  251|->         for (i = 0; i < n && layouts[i][0]; i++) {
#  252|                   if (variants && variants[i] && variants[i][0])
#  253|                           id = g_strdup_printf ("%s+%s", layouts[i], variants[i]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
gnome-initial-setup-46.alpha-build/gnome-initial-setup-46.alpha/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c: scope_hint: In function ‘get_localed_input’
gnome-initial-setup-46.alpha-build/gnome-initial-setup-46.alpha/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c:251:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘layouts’
#  249|                   n = 0;
#  250|   
#  251|->         for (i = 0; i < n && layouts[i][0]; i++) {
#  252|                   if (variants && variants[i] && variants[i][0])
#  253|                           id = g_strdup_printf ("%s+%s", layouts[i], variants[i]);

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-63.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegnome-initial-setup-46.2-1.fc41
diffbase-store-results-to/tmp/tmpkzhmio38/gnome-initial-setup-46.2-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:53:25
diffbase-time-finished2024-07-03 12:55:56
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpkzhmio38/gnome-initial-setup-46.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpkzhmio38/gnome-initial-setup-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-63.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegnome-initial-setup-46.alpha-12.fc40
store-results-to/tmp/tmpp6_z7_0_/gnome-initial-setup-46.alpha-12.fc40.tar.xz
time-created2024-07-03 12:50:00
time-finished2024-07-03 12:52:58
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpp6_z7_0_/gnome-initial-setup-46.alpha-12.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpp6_z7_0_/gnome-initial-setup-46.alpha-12.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9