Error: CPPCHECK_WARNING (CWE-457): [#def1] 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: GCC_ANALYZER_WARNING (CWE-688): [#def2] 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: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’ 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: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’ 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: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’ 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: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’ 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: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’ 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): [#def3] 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: COMPILER_WARNING (CWE-477): [#def4] 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 # 77 | gdk_pointer_grab (gtk_widget_get_window (selection_window), FALSE, 0, NULL, # | ^~~~~~~~~~~~~~~~ /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 # 86 | GdkGrabStatus gdk_pointer_grab (GdkWindow *window, # | ^~~~~~~~~~~~~~~~ # 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): [#def5] 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 # 85 | gdk_flush (); # | ^~~~~~~~~ /usr/include/gtk-3.0/gdk/gdkmain.h:124:6: note: declared here # 124 | void gdk_flush (void); # | ^~~~~~~~~ # 83| out: # 84| XUngrabServer (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ())); # 85|-> gdk_flush (); # 86| # 87| return result; Error: COMPILER_WARNING (CWE-477): [#def6] 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 # 98 | gdk_flush (); # | ^~~~~~~~~ /usr/include/gtk-3.0/gdk/gdkmain.h:124:6: note: declared here # 124 | void gdk_flush (void); # | ^~~~~~~~~ # 96| selection_window = NULL; # 97| } # 98|-> gdk_flush (); # 99| } # 100| Error: COMPILER_WARNING (CWE-477): [#def7] 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 # 140 | if (x_orig + width > gdk_screen_width ()) { # | ^~ /usr/include/gtk-3.0/gdk/gdkmain.h:108:6: note: declared here # 108 | gint gdk_screen_width (void) G_GNUC_CONST; # | ^~~~~~~~~~~~~~~~ # 138| } # 139| # 140|-> if (x_orig + width > gdk_screen_width ()) { # 141| width = gdk_screen_width () - x_orig; # 142| } Error: COMPILER_WARNING (CWE-477): [#def8] gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:141:17: warning[-Wdeprecated-declarations]: ‘gdk_screen_width’ is deprecated # 141 | width = gdk_screen_width () - x_orig; # | ^~~~~ /usr/include/gtk-3.0/gdk/gdkmain.h:108:6: note: declared here # 108 | gint gdk_screen_width (void) G_GNUC_CONST; # | ^~~~~~~~~~~~~~~~ # 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): [#def9] gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:143:9: warning[-Wdeprecated-declarations]: ‘gdk_screen_height’ is deprecated # 143 | if (y_orig + height > gdk_screen_height ()) { # | ^~ /usr/include/gtk-3.0/gdk/gdkmain.h:110:6: note: declared here # 110 | gint gdk_screen_height (void) G_GNUC_CONST; # | ^~~~~~~~~~~~~~~~~ # 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): [#def10] gdm-46.2-build/gdm-46.2/utils/gdm-screenshot.c:144:17: warning[-Wdeprecated-declarations]: ‘gdk_screen_height’ is deprecated # 144 | height = gdk_screen_height () - y_orig; # | ^~~~~~ /usr/include/gtk-3.0/gdk/gdkmain.h:110:6: note: declared here # 110 | gint gdk_screen_height (void) G_GNUC_CONST; # | ^~~~~~~~~~~~~~~~~ # 142| } # 143| if (y_orig + height > gdk_screen_height ()) { # 144|-> height = gdk_screen_height () - y_orig; # 145| } # 146|
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 |
diffbase-analyzer-version-clippy | 1.82.0 |
diffbase-analyzer-version-cppcheck | 2.16.0 |
diffbase-analyzer-version-gcc | 14.2.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.0 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-unicontrol | 0.0.2 |
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-169.us-west-2.compute.internal |
diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
diffbase-project-name | gdm-47.0-2.fc42 |
diffbase-store-results-to | /tmp/tmpvysw3i_v/gdm-47.0-2.fc42.tar.xz |
diffbase-time-created | 2024-11-12 23:55:52 |
diffbase-time-finished | 2024-11-12 23:58:04 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpvysw3i_v/gdm-47.0-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpvysw3i_v/gdm-47.0-2.fc42.src.rpm' |
diffbase-tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-169.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | gdm-46.2-4.fc41 |
store-results-to | /tmp/tmpe0z2hcip/gdm-46.2-4.fc41.tar.xz |
time-created | 2024-11-12 23:52:27 |
time-finished | 2024-11-12 23:55:24 |
title | Fixed findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpe0z2hcip/gdm-46.2-4.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpe0z2hcip/gdm-46.2-4.fc41.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |