xdg-desktop-portal-kde-6.1.1-1.fc41
List of Defects
Error: COMPILER_WARNING (CWE-563): [#def1]
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/inputcapturedialog.cpp: scope_hint: In constructor ‘InputCaptureDialog::InputCaptureDialog(const QString&, InputCapturePortal::Capabilities, QObject*)’
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/inputcapturedialog.cpp:12:95: warning[-Wunused-parameter]: unused parameter ‘capabilties’
# 12 | InputCaptureDialog::InputCaptureDialog(const QString &appId, InputCapturePortal::Capabilities capabilties, QObject *parent)
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
# 10| using namespace Qt::StringLiterals;
# 11|
# 12|-> InputCaptureDialog::InputCaptureDialog(const QString &appId, InputCapturePortal::Capabilities capabilties, QObject *parent)
# 13| : QuickDialog(parent)
# 14| {
Error: COMPILER_WARNING (CWE-563): [#def2]
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/region-select/SelectionEditor.cpp: scope_hint: In member function ‘virtual bool SelectionEditor::eventFilter(QObject*, QEvent*)’
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/region-select/SelectionEditor.cpp:158:44: warning[-Wunused-parameter]: unused parameter ‘watched’
# 158 | bool SelectionEditor::eventFilter(QObject *watched, QEvent *event)
# | ~~~~~~~~~^~~~~~~
# 156| }
# 157|
# 158|-> bool SelectionEditor::eventFilter(QObject *watched, QEvent *event)
# 159| {
# 160| switch (event->type()) {
Error: COMPILER_WARNING (CWE-563): [#def3]
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/session.cpp: scope_hint: In member function ‘void RemoteDesktopSession::setOptions(const QVariantMap&)’
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/session.cpp:231:58: warning[-Wunused-parameter]: unused parameter ‘options’
# 231 | void RemoteDesktopSession::setOptions(const QVariantMap &options)
# | ~~~~~~~~~~~~~~~~~~~^~~~~~~
# 229| }
# 230|
# 231|-> void RemoteDesktopSession::setOptions(const QVariantMap &options)
# 232| {
# 233| }
Error: CLANG_WARNING: [#def4]
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/waylandintegration.cpp:273:27: warning[core.CallAndMessage]: Called C++ object pointer is null
# 271| {
# 272| auto uuid = win[KWayland::Client::PlasmaWindowModel::Uuid].toString();
# 273|-> return startStreaming(m_screencasting->createWindowStream(uuid, cursorMode), {{QLatin1String("source_type"), static_cast<uint>(ScreenCastPortal::Window)}});
# 274| }
# 275|
Error: CLANG_WARNING: [#def5]
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/waylandintegration.cpp:278:19: warning[core.CallAndMessage]: Called C++ object pointer is null
# 276| WaylandIntegration::Stream WaylandIntegration::WaylandIntegrationPrivate::startStreamingOutput(QScreen *screen, Screencasting::CursorMode mode)
# 277| {
# 278|-> auto stream = m_screencasting->createOutputStream(screen, mode);
# 279| if (!stream) {
# 280| qCWarning(XdgDesktopPortalKdeWaylandIntegration) << "Cannot stream, output not found" << screen->name();
Error: CLANG_WARNING: [#def6]
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/waylandintegration.cpp:302:27: warning[core.CallAndMessage]: Called C++ object pointer is null
# 300| workspace |= screen->geometry();
# 301| }
# 302|-> return startStreaming(m_screencasting->createRegionStream(workspace, 1, mode),
# 303| {
# 304| {QLatin1String("size"), workspace.size()},
Error: CLANG_WARNING: [#def7]
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/waylandintegration.cpp:311:27: warning[core.CallAndMessage]: Called C++ object pointer is null
# 309| WaylandIntegration::Stream WaylandIntegration::WaylandIntegrationPrivate::startStreamingRegion(const QRect region, Screencasting::CursorMode mode)
# 310| {
# 311|-> return startStreaming(m_screencasting->createRegionStream(region, 1, mode),
# 312| {
# 313| {QLatin1String("size"), region.size()},
Error: CLANG_WARNING: [#def8]
xdg-desktop-portal-kde-6.1.1-build/xdg-desktop-portal-kde-6.1.1/src/waylandintegration.cpp:321:27: warning[core.CallAndMessage]: Called C++ object pointer is null
# 319| WaylandIntegration::WaylandIntegrationPrivate::startStreamingVirtualOutput(const QString &name, const QSize &size, Screencasting::CursorMode mode)
# 320| {
# 321|-> return startStreaming(m_screencasting->createVirtualOutputStream(name, size, 1, mode),
# 322| {
# 323| {QLatin1String("size"), size},
Scan Properties
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 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-241.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | xdg-desktop-portal-kde-6.1.1-1.fc41 |
store-results-to | /tmp/tmphyxkf6n_/xdg-desktop-portal-kde-6.1.1-1.fc41.tar.xz |
time-created | 2024-07-03 18:25:15 |
time-finished | 2024-07-03 18:28:49 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmphyxkf6n_/xdg-desktop-portal-kde-6.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmphyxkf6n_/xdg-desktop-portal-kde-6.1.1-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |