Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
xdg-desktop-portal-gnome-46.0-build/xdg-desktop-portal-gnome-46.0/src/screencastwidget.c: scope_hint: In function ‘should_skip_window’
xdg-desktop-portal-gnome-46.0-build/xdg-desktop-portal-gnome-46.0/src/screencastwidget.c:213:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib.h:33: 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.
xdg-desktop-portal-gnome-46.0-build/xdg-desktop-portal-gnome-46.0/src/screencastwidget.c:21: included_from: Included from here.
xdg-desktop-portal-gnome-46.0-build/xdg-desktop-portal-gnome-46.0/src/screencastwidget.c:241:24: note: in expansion of macro ‘g_ptr_array_index’
/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.
xdg-desktop-portal-gnome-46.0-build/xdg-desktop-portal-gnome-46.0/src/screencastwidget.c:211:22: note: in expansion of macro ‘g_strdup’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  211|     processed_app_id = g_strdup (window_get_app_id (window));
#  212|     if (g_str_has_suffix (processed_app_id, ".desktop"))
#  213|->     processed_app_id[strlen (processed_app_id) -
#  214|                        strlen (".desktop")] = '\0';
#  215|   

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-233.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namexdg-desktop-portal-gnome-46.2-1.fc41
diffbase-store-results-to/tmp/tmpy19hy30y/xdg-desktop-portal-gnome-46.2-1.fc41.tar.xz
diffbase-time-created2024-07-03 18:29:52
diffbase-time-finished2024-07-03 18:32:06
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpy19hy30y/xdg-desktop-portal-gnome-46.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpy19hy30y/xdg-desktop-portal-gnome-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-233.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namexdg-desktop-portal-gnome-46.0-1.fc40
store-results-to/tmp/tmpjg5nkdsr/xdg-desktop-portal-gnome-46.0-1.fc40.tar.xz
time-created2024-07-03 18:26:48
time-finished2024-07-03 18:29:29
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpjg5nkdsr/xdg-desktop-portal-gnome-46.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpjg5nkdsr/xdg-desktop-portal-gnome-46.0-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9