Fixed defects

List of Defects

Error: CPPCHECK_WARNING: [#def1]
mutter-46.0-build/mutter-46.0/clutter/clutter/clutter-color.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
mutter-46.0-build/mutter-46.0/cogl/cogl/cogl-color.c: scope_hint: In function ‘cogl_color_init_from_hsl’
mutter-46.0-build/mutter-46.0/cogl/cogl/cogl-color.c:249:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘clr[2]’
#  247|       }
#  248|   
#  249|->   cogl_color_init_from_4f (color, clr[0], clr[1], clr[2], 1.0f);
#  250|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
mutter-46.0-build/mutter-46.0/cogl/cogl/cogl-xlib-renderer.c: scope_hint: In function ‘update_outputs’
mutter-46.0-build/mutter-46.0/cogl/cogl/cogl-xlib-renderer.c:313:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘m’
#  311|             else
#  312|               {
#  313|->               GList *m_next = m->next;
#  314|                 renderer->outputs = g_list_remove_link (renderer->outputs, m);
#  315|                 changed = TRUE;

Error: CPPCHECK_WARNING (CWE-664): [#def4]
mutter-46.0-build/mutter-46.0/cogl/cogl/cogl.c:92: error[va_end_missing]: va_list 'args' was opened but not closed by va_end().
#   90|     while ((feature = va_arg (args, CoglFeatureID)))
#   91|       if (!cogl_has_feature (ctx, feature))
#   92|->       return FALSE;
#   93|     va_end (args);
#   94|   

Error: CPPCHECK_WARNING: [#def5]
mutter-46.0-build/mutter-46.0/redhat-linux-build/src/meta-private-enum-types.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspect13j2elv6/CoglPango-14.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def7]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspect13j2elv6/CoglPango-14.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def8]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspect4t2i33ov/Clutter-14.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def9]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspect4t2i33ov/Clutter-14.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def10]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspect85xn1mm6/Cogl-14.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def11]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspect85xn1mm6/Cogl-14.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def12]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspect9speli14/Meta-14.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def13]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspect9speli14/Meta-14.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def14]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspectrlq5hwzu/Mtk-14.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def15]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspectrlq5hwzu/Mtk-14.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def16]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspectu715ojsf/Cally-14.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def17]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspectu715ojsf/Cally-14.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def18]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspectye4qosu6/MetaTest-14.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def19]
mutter-46.0-build/mutter-46.0/redhat-linux-build/tmp-introspectye4qosu6/MetaTest-14.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def20]
mutter-46.0-build/mutter-46.0/src/backends/meta-remote-desktop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
mutter-46.0-build/mutter-46.0/src/backends/meta-screen-cast-area-stream-src.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
mutter-46.0-build/mutter-46.0/src/backends/meta-screen-cast-area-stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
mutter-46.0-build/mutter-46.0/src/backends/meta-screen-cast-monitor-stream-src.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
mutter-46.0-build/mutter-46.0/src/backends/meta-screen-cast-monitor-stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
mutter-46.0-build/mutter-46.0/src/backends/meta-screen-cast-stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
mutter-46.0-build/mutter-46.0/src/backends/meta-screen-cast-virtual-stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
mutter-46.0-build/mutter-46.0/src/backends/meta-screen-cast-window-stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def28]
mutter-46.0-build/mutter-46.0/src/core/display.c:2707: warning[uninitvar]: Uninitialized variables: settings.parent_instance, settings.priv
# 2705|       }
# 2706|   
# 2707|->   if (!layout_path || !settings)
# 2708|       return;
# 2709|   

Error: CPPCHECK_WARNING: [#def29]
mutter-46.0-build/mutter-46.0/src/core/frame.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def30]
mutter-46.0-build/mutter-46.0/src/core/keybindings.c:1804:13: warning[core.NullDereference]: Access to field 'func' results in a dereference of a null pointer (loaded from field 'handler')
# 1802|   meta_key_binding_has_handler_func (MetaKeyBinding *binding)
# 1803|   {
# 1804|->   return (!!binding->handler->func || !!binding->handler->default_func);
# 1805|   }
# 1806|   

Error: CPPCHECK_WARNING: [#def31]
mutter-46.0-build/mutter-46.0/src/core/meta-selection-source-remote.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
mutter-46.0-build/mutter-46.0/src/tests/clutter/conform/color.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def33]
mutter-46.0-build/mutter-46.0/src/tests/monitor-unit-tests.c:5420:3: warning[deadcode.DeadStores]: Value stored to 'touch_device' is never read
# 5418|     g_test_message ("%s", G_STRFUNC);
# 5419|     orientation_mock = meta_sensors_proxy_mock_get ();
# 5420|->   touch_device =
# 5421|       meta_backend_test_add_test_device (META_BACKEND_TEST (backend),
# 5422|                                          "test-touchscreen",

Error: CLANG_WARNING: [#def34]
mutter-46.0-build/mutter-46.0/src/wayland/meta-wayland-input.c:339:32: warning[deadcode.DeadStores]: Value stored to 'head' during its initialization is never read
#  337|     if (handler_change && !wl_list_empty (&input->event_handler_list))
#  338|       {
#  339|->       MetaWaylandEventHandler *head =
#  340|           wl_container_of (input->event_handler_list.next,
#  341|                            head, link);

Error: CLANG_WARNING: [#def35]
mutter-46.0-build/mutter-46.0/src/x11/events.c:1594:37: warning[core.NullDereference]: Access to field 'frame' results in a dereference of a null pointer (loaded from variable 'window')
# 1592|             meta_window_x11_property_notify (property_for_window, event);
# 1593|           else if (frame_was_receiver)
# 1594|->           meta_frame_handle_xevent (window->frame, event);
# 1595|   
# 1596|           group = meta_x11_display_lookup_group (x11_display,

Error: CLANG_WARNING: [#def36]
mutter-46.0-build/mutter-46.0/src/x11/group.c:66:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'group'
#   64|                                        &e);
#   65|     if (e || !attrs)
#   66|->     return NULL;
#   67|   
#   68|     const uint32_t events[] = { attrs->your_event_mask | XCB_EVENT_MASK_PROPERTY_CHANGE };

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-108.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namemutter-47~alpha-1.fc41
diffbase-store-results-to/tmp/tmpg4x2_qys/mutter-47~alpha-1.fc41.tar.xz
diffbase-time-created2024-07-03 16:35:28
diffbase-time-finished2024-07-03 16:56:34
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpg4x2_qys/mutter-47~alpha-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpg4x2_qys/mutter-47~alpha-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-108.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namemutter-46.0-1.fc40
store-results-to/tmp/tmpu5btvzy_/mutter-46.0-1.fc40.tar.xz
time-created2024-07-03 16:14:52
time-finished2024-07-03 16:34:57
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpu5btvzy_/mutter-46.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpu5btvzy_/mutter-46.0-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9