Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-ctl.c: scope_hint: In function ‘print_rdp_status’ gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-ctl.c:563:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’ /usr/include/glib-2.0/glib/gmacros.h:1358:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’ /usr/include/glib-2.0/glib/gmacros.h:1372:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:56:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ /usr/include/glib-2.0/glib/glib-autocleanups.h: scope_hint: In function ‘print_rdp_status’ /usr/include/glib-2.0/glib/gmacros.h:1358:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’ /usr/include/glib-2.0/glib/gmacros.h:1372:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:56:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ /usr/include/glib-2.0/glib/gmacros.h:1372:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:56:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ # 561| if (!credentials) # 562| { # 563|-> fprintf (stderr, "Failed to initialize credential manager: %s\n", # 564| error->message); # 565| return; Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-ctl.c: scope_hint: In function ‘print_vnc_status’ gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-ctl.c:628:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’ /usr/include/glib-2.0/glib/gmacros.h:1358:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’ /usr/include/glib-2.0/glib/gmacros.h:1372:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:56:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ /usr/include/glib-2.0/glib/glib-autocleanups.h: scope_hint: In function ‘print_vnc_status’ /usr/include/glib-2.0/glib/gmacros.h:1358:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’ /usr/include/glib-2.0/glib/gmacros.h:1372:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:56:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ /usr/include/glib-2.0/glib/gmacros.h:1372:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:56:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ # 626| if (!credentials) # 627| { # 628|-> fprintf (stderr, "Failed to initialize credential manager: %s\n", # 629| error->message); # 630| return; Error: CPPCHECK_WARNING: [#def3] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-rdp-display-control.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: [#def4] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-rdp-dvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: [#def5] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-rdp-gfx-surface.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: [#def6] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-rdp-layout-manager.c:586:3: warning[deadcode.DeadStores]: Value stored to 'locker' is never read # 584| GHashTableIter iter; # 585| # 586|-> locker = g_mutex_locker_new (&layout_manager->state_mutex); # 587| if (layout_manager->state != UPDATE_STATE_AWAIT_CONFIG) # 588| return FALSE; Error: CLANG_WARNING: [#def7] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-rdp-layout-manager.c:723:3: warning[deadcode.DeadStores]: Value stored to 'locker' is never read # 721| g_autoptr (GMutexLocker) locker = NULL; # 722| # 723|-> locker = g_mutex_locker_new (&layout_manager->monitor_config_mutex); # 724| if (!layout_manager->pending_monitor_config) # 725| return FALSE; Error: CLANG_WARNING: [#def8] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-rdp-pipewire-stream.c:729:3: warning[deadcode.DeadStores]: Value stored to 'locker' is never read # 727| g_assert_not_reached (); # 728| # 729|-> locker = g_mutex_locker_new (&stream->dequeue_mutex); # 730| # 731| /* Ensure buffer is not locked any more */ Error: CLANG_WARNING: [#def9] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-rdp-pipewire-stream.c:1140:3: warning[deadcode.DeadStores]: Value stored to 'locker' is never read # 1138| struct pw_buffer *next_buffer; # 1139| # 1140|-> locker = g_mutex_locker_new (&stream->dequeue_mutex); # 1141| if (stream->dequeuing_disallowed) # 1142| return; Error: CPPCHECK_WARNING: [#def10] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-rdp-server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: [#def11] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-rdp-telemetry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: [#def12] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-session-rdp.c:325:3: warning[deadcode.DeadStores]: Value stored to 'locker' is never read # 323| g_assert (session_rdp->peer); # 324| # 325|-> locker = g_mutex_locker_new (&rdp_surface->surface_mutex); # 326| if (!rdp_surface->pending_framebuffer) # 327| return; Error: CLANG_WARNING: [#def13] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-session-rdp.c:532:34: warning[core.NullDereference]: Access to field 'cache_index' results in a dereference of a null pointer (loaded from variable 'lru_pointer') # 530| # 531| g_hash_table_steal (session_rdp->pointer_cache, lru_pointer); # 532|-> new_pointer->cache_index = lru_pointer->cache_index; # 533| # 534| g_free (lru_pointer->bitmap); Error: GCC_ANALYZER_WARNING (CWE-476): [#def14] gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-session-rdp.c: scope_hint: In function ‘grd_session_rdp_update_pointer’ gnome-remote-desktop-45.1-build/gnome-remote-desktop-45.1/src/grd-session-rdp.c:532:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lru_pointer’ # 530| # 531| g_hash_table_steal (session_rdp->pointer_cache, lru_pointer); # 532|-> new_pointer->cache_index = lru_pointer->cache_index; # 533| # 534| g_free (lru_pointer->bitmap);
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-37.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | gnome-remote-desktop-46.2-1.fc41 |
diffbase-store-results-to | /tmp/tmpfsp5z0m_/gnome-remote-desktop-46.2-1.fc41.tar.xz |
diffbase-time-created | 2024-07-03 13:05:21 |
diffbase-time-finished | 2024-07-03 13:07:34 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpfsp5z0m_/gnome-remote-desktop-46.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpfsp5z0m_/gnome-remote-desktop-46.2-1.fc41.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-37.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | gnome-remote-desktop-45.1-4.fc40 |
store-results-to | /tmp/tmpmzayb5p9/gnome-remote-desktop-45.1-4.fc40.tar.xz |
time-created | 2024-07-03 13:02:38 |
time-finished | 2024-07-03 13:04:53 |
title | Fixed defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpmzayb5p9/gnome-remote-desktop-45.1-4.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpmzayb5p9/gnome-remote-desktop-45.1-4.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |