qt5-qtwayland-5.15.14-1.fc41

List of Defects

Error: CLANG_WARNING: [#def1]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/config.tests/glx/main.cpp:9:18: warning[deadcode.DeadStores]: Value stored to 'fbc' during its initialization is never read
#    7|       Display *dpy = XOpenDisplay(0);
#    8|       int items = 0;
#    9|->     GLXFBConfig *fbc = glXChooseFBConfig(dpy, DefaultScreen(dpy), 0 , &items);
#   10|       /* END TEST */
#   11|       return 0;

Error: CLANG_WARNING: [#def2]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/config.tests/wayland-egl/main.cpp:7:27: warning[deadcode.DeadStores]: Value stored to 'window' during its initialization is never read
#    5|       (void)argc; (void)argv;
#    6|       /* BEGIN TEST: */
#    7|->     struct wl_egl_window *window = wl_egl_window_create(0, 100, 100);
#    8|       /* END TEST */
#    9|       return 0;

Error: COMPILER_WARNING (CWE-569): [#def3]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/examples/wayland/minimal-cpp/compositor.cpp: scope_hint: In member function ‘void Compositor::handleMousePress(const QPoint&, Qt::MouseButton)’
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/examples/wayland/minimal-cpp/compositor.cpp:138:42: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
#  138 |         if (m_mouseView = viewAt(position))
#      |                                          ^
#  136|   {
#  137|       if (!m_mouseView) {
#  138|->         if (m_mouseView = viewAt(position))
#  139|               raise(m_mouseView);
#  140|       }

Error: CLANG_WARNING: [#def4]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/client/qwaylandshmbackingstore.cpp:301:41: warning[core.CallAndMessage]: Called C++ object pointer is null
#  299|       // mBackBuffer may have been deleted here but if so it means its size was different so we wouldn't copy it anyway
#  300|       if (mBackBuffer != buffer && oldSizeInBytes == newSizeInBytes)
#  301|->         memcpy(buffer->image()->bits(), mBackBuffer->image()->constBits(), newSizeInBytes);
#  302|   
#  303|       mBackBuffer = buffer;

Error: CLANG_WARNING: [#def5]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/client/qwaylandtabletv2.cpp:55:21: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
#   53|       // This only works if we get the manager after all seats
#   54|       const auto seats = display->inputDevices();
#   55|->     for (auto *seat : seats)
#   56|           createTabletSeat(seat);
#   57|   }

Error: CLANG_WARNING: [#def6]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/compositor/compositor_api/qwaylandquickitem.cpp:306:29: warning[core.CallAndMessage]: Called C++ object pointer is null
#  304|                   auto texture = buffer.toOpenGLTexture();
#  305|                   GLuint textureId = texture->textureId();
#  306|->                 auto size = surface->bufferSize();
#  307|                   m_sgTex = surfaceItem->window()->createTextureFromNativeObject(QQuickWindow::NativeObjectTexture, &textureId, 0, size, opt);
#  308|   #else

Error: CLANG_WARNING: [#def7]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/compositor/wayland_wrapper/qwldatadevice.cpp:71:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'offer'
#   69|       if (m_selectionSource) {
#   70|           DataOffer *offer = new DataOffer(m_selectionSource, resource);
#   71|->         send_selection(resource->handle, offer->resource()->handle);
#   72|       }
#   73|   }

Error: CLANG_WARNING: [#def8]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/compositor/wayland_wrapper/qwldatadevice.cpp:108:5: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'offer'
#  106|           return;
#  107|   
#  108|->     send_enter(resource->handle, serial, focus->resource(),
#  109|                  wl_fixed_from_double(localPosition.x()), wl_fixed_from_double(localPosition.y()),
#  110|                  offer->resource()->handle);

Error: CLANG_WARNING: [#def9]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/compositor/wayland_wrapper/qwldatadevice.cpp:110:16: warning[core.CallAndMessage]: Called C++ object pointer is null
#  108|       send_enter(resource->handle, serial, focus->resource(),
#  109|                  wl_fixed_from_double(localPosition.x()), wl_fixed_from_double(localPosition.y()),
#  110|->                offer->resource()->handle);
#  111|   
#  112|       m_dragFocus = focus;

Error: CLANG_WARNING: [#def10]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/compositor/wayland_wrapper/qwldatadevice.cpp:133:17: warning[core.NullDereference]: Access to field 'handle' results in a dereference of a null pointer (loaded from field 'm_dragFocusResource')
#  131|           return;
#  132|       uint time = m_compositor->currentTimeMsecs(); //### should be serial
#  133|->     send_motion(m_dragFocusResource->handle, time,
#  134|                   wl_fixed_from_double(pos.x()), wl_fixed_from_double(pos.y()));
#  135|   }

Error: CLANG_WARNING: [#def11]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/compositor/wayland_wrapper/qwldatadevice.cpp:196:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'offer'
#  194|       if (resource && m_selectionSource) {
#  195|           DataOffer *offer = new DataOffer(m_selectionSource, resource);
#  196|->         send_selection(resource->handle, offer->resource()->handle);
#  197|       } else if (resource) {
#  198|           send_selection(resource->handle, nullptr);

Error: CLANG_WARNING: [#def12]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/hardwareintegration/compositor/vulkan-server/vulkanserverbufferintegration.cpp:225:12: warning[deadcode.DeadStores]: Value stored to 'texId' during its initialization is never read
#  223|       m_texture->create();
#  224|   
#  225|->     GLuint texId = m_texture->textureId();
#  226|       if (extraDebug) qDebug() << "created texture" << texId << Qt::hex << glGetError();
#  227|   

Error: CLANG_WARNING: [#def13]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/hardwareintegration/compositor/vulkan-server/vulkanwrapper.cpp:263:5: warning[deadcode.DeadStores]: Value stored to 'res' is never read
#  261|       memoryFdInfo.handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR;
#  262|   
#  263|->     res = vkGetMemoryFdKHR(m_device, &memoryFdInfo, &imageWrapper->imgFd);
#  264|       if (extraDebug) qDebug() << "vkGetMemoryFdKHR res" << res << "fd" << imageWrapper->imgFd;
#  265|   

Error: CLANG_WARNING: [#def14]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/hardwareintegration/compositor/vulkan-server/vulkanwrapper.cpp:370:5: warning[deadcode.DeadStores]: Value stored to 'res' is never read
#  368|       beginInfo.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT;
#  369|   
#  370|->     res = vkBeginCommandBuffer(commandBuffer, &beginInfo);
#  371|       if (extraDebug) qDebug() << "BEGIN res" << res;
#  372|   

Error: CLANG_WARNING: [#def15]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/hardwareintegration/compositor/vulkan-server/vulkanwrapper.cpp:612:10: warning[deadcode.DeadStores]: Value stored to 'res' during its initialization is never read
#  610|       uint32_t devCount;
#  611|   
#  612|->     auto res = vkEnumeratePhysicalDevices(m_instance, &devCount, nullptr);
#  613|       if (extraDebug) qDebug() << "vkEnumeratePhysicalDevices res =" << res << "count =" << devCount;
#  614|   

Error: CLANG_WARNING: [#def16]
qt5-qtwayland-5.15.14-build/qtwayland-everywhere-src-5.15.14/src/hardwareintegration/compositor/vulkan-server/vulkanwrapper.cpp:617:5: warning[deadcode.DeadStores]: Value stored to 'res' is never read
#  615|       QVarLengthArray<VkPhysicalDevice, 5> dev(devCount);
#  616|   
#  617|->     res = vkEnumeratePhysicalDevices(m_instance, &devCount, dev.data());
#  618|       if (extraDebug) qDebug() << "...devs res =" << res << "count =" << devCount;
#  619|   

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
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-153.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameqt5-qtwayland-5.15.14-1.fc41
store-results-to/tmp/tmpgnggog5g/qt5-qtwayland-5.15.14-1.fc41.tar.xz
time-created2024-07-03 17:45:43
time-finished2024-07-03 17:50:52
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpgnggog5g/qt5-qtwayland-5.15.14-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpgnggog5g/qt5-qtwayland-5.15.14-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9