xdg-desktop-portal-kde-6.5.4-1.fc44

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
xdg-desktop-portal-kde-6.5.4/src/appchooserdialog.cpp: scope_hint: In member function ‘void AppChooserDialog::onApplicationSelected(const QString&, bool)’
xdg-desktop-portal-kde-6.5.4/src/appchooserdialog.cpp:144:50: warning[-Wdeprecated-declarations]: ‘static void KWaylandExtras::requestXdgActivationToken(QWindow*, uint32_t, const QString&)’ is deprecated: Since 6.19. Use xdgActivationToken()
#  144 |         KWaylandExtras::requestXdgActivationToken(m_theDialog, KWaylandExtras::lastInputSerial(m_theDialog), m_selectedApplication);
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF6/KWindowSystem/KWaylandExtras:1: included_from: Included from here.
xdg-desktop-portal-kde-6.5.4/src/appchooserdialog.cpp:32: included_from: Included from here.
/usr/include/KF6/KWindowSystem/kwaylandextras.h:44:29: note: declared here
#   44 |     Q_INVOKABLE static void requestXdgActivationToken(QWindow *win, uint32_t serial, const QString &app_id);
#      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
#  142|   
#  143|       if (KWindowSystem::isPlatformWayland()) {
#  144|->         KWaylandExtras::requestXdgActivationToken(m_theDialog, KWaylandExtras::lastInputSerial(m_theDialog), m_selectedApplication);
#  145|   
#  146|           connect(

Error: COMPILER_WARNING (CWE-477): [#def2]
xdg-desktop-portal-kde-6.5.4/src/appchooserdialog.cpp:148:30: warning[-Wdeprecated-declarations]: ‘void KWaylandExtras::xdgActivationTokenArrived(int, const QString&)’ is deprecated: Since 6.19. Use xdgActivationToken()
#  148 |             &KWaylandExtras::xdgActivationTokenArrived,
#      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF6/KWindowSystem/kwaylandextras.h:113:78: note: declared here
#  113 |     KWINDOWSYSTEM_DEPRECATED_VERSION(6, 19, "Use xdgActivationToken()") void xdgActivationTokenArrived(int serial, const QString &token);
#      |                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
#  146|           connect(
#  147|               KWaylandExtras::self(),
#  148|->             &KWaylandExtras::xdgActivationTokenArrived,
#  149|               this,
#  150|               [this](int /*serial*/, const QString &token) {

Error: COMPILER_WARNING (CWE-477): [#def3]
xdg-desktop-portal-kde-6.5.4/src/dynamiclauncher.cpp: scope_hint: In function ‘QIcon extractIcon(const QDBusVariant&)’
xdg-desktop-portal-kde-6.5.4/src/dynamiclauncher.cpp:65:61: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType().
#   65 |     if (icon.str == QStringLiteral("bytes") && iconData.type() == QVariant::ByteArray) {
#      |                                                ~~~~~~~~~~~~~^~
/usr/include/qt6/QtDBus/qtdbusglobal.h:10: included_from: Included from here.
/usr/include/qt6/QtDBus/qdbusabstractadaptor.h:8: included_from: Included from here.
/usr/include/qt6/QtDBus/QDBusAbstractAdaptor:1: included_from: Included from here.
xdg-desktop-portal-kde-6.5.4/src/dynamiclauncher.h:6: included_from: Included from here.
xdg-desktop-portal-kde-6.5.4/src/dynamiclauncher.cpp:4: included_from: Included from here.
/usr/include/qt6/QtCore/qvariant.h:564:10: note: declared here
#  564 |     Type type() const
#      |          ^~~~
#   63|       const QVariant iconData = icon.data.variant();
#   64|       // NB: The DynamicLauncher portal only accept GByteIcons, i.e. the only type we'll ever get are bytes.
#   65|->     if (icon.str == QStringLiteral("bytes") && iconData.type() == QVariant::ByteArray) {
#   66|           QPixmap pixmap;
#   67|           pixmap.loadFromData(iconData.toByteArray());

Error: COMPILER_WARNING (CWE-477): [#def4]
xdg-desktop-portal-kde-6.5.4/src/dynamiclauncher.cpp: scope_hint: In lambda function
xdg-desktop-portal-kde-6.5.4/src/dynamiclauncher.cpp:139:78: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType().
#  139 |             if (editableIcon && dialog->m_icon != icon && dialog->m_icon.type() == QVariant::String) {
#      |                                                           ~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:564:10: note: declared here
#  564 |     Type type() const
#      |          ^~~~
#  137|                   results[nameKey] = name;
#  138|               }
#  139|->             if (editableIcon && dialog->m_icon != icon && dialog->m_icon.type() == QVariant::String) {
#  140|                   const auto data = iconFromName(dialog->m_icon.toString());
#  141|                   if (!data.isEmpty()) {

Error: COMPILER_WARNING (CWE-563): [#def5]
xdg-desktop-portal-kde-6.5.4/src/inputcapturedialog.cpp: scope_hint: In constructor ‘InputCaptureDialog::InputCaptureDialog(const QString&, InputCapturePortal::Capabilities, QObject*)’
xdg-desktop-portal-kde-6.5.4/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-477): [#def6]
xdg-desktop-portal-kde-6.5.4/src/notification.cpp: scope_hint: In member function ‘void NotificationPortal::AddNotification(const QString&, const QString&, const QVariantMap&)’
xdg-desktop-portal-kde-6.5.4/src/notification.cpp:52:29: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType().
#   52 |         if (iconVariant.type() == QVariant::String) {
#      |             ~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtDBus/qtdbusglobal.h:10: included_from: Included from here.
/usr/include/qt6/QtDBus/qdbusabstractadaptor.h:8: included_from: Included from here.
/usr/include/qt6/QtDBus/QDBusAbstractAdaptor:1: included_from: Included from here.
xdg-desktop-portal-kde-6.5.4/src/notification.h:12: included_from: Included from here.
xdg-desktop-portal-kde-6.5.4/src/notification.cpp:8: included_from: Included from here.
/usr/include/qt6/QtCore/qvariant.h:564:10: note: declared here
#  564 |     Type type() const
#      |          ^~~~
#   50|       if (notification.contains(QStringLiteral("icon"))) {
#   51|           QVariant iconVariant = notification.value(QStringLiteral("icon"));
#   52|->         if (iconVariant.type() == QVariant::String) {
#   53|               notify->setIconName(iconVariant.toString());
#   54|           } else {

Error: COMPILER_WARNING (CWE-477): [#def7]
xdg-desktop-portal-kde-6.5.4/src/notification.cpp:58:70: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType().
#   58 |             if (icon.str == QStringLiteral("themed") && iconData.type() == QVariant::StringList) {
#      |                                                         ~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:564:10: note: declared here
#  564 |     Type type() const
#      |          ^~~~
#   56|               PortalIcon icon = qdbus_cast<PortalIcon>(argument);
#   57|               QVariant iconData = icon.data.variant();
#   58|->             if (icon.str == QStringLiteral("themed") && iconData.type() == QVariant::StringList) {
#   59|                   notify->setIconName(iconData.toStringList().first());
#   60|               } else if (icon.str == QStringLiteral("bytes") && iconData.type() == QVariant::ByteArray) {

Error: COMPILER_WARNING (CWE-477): [#def8]
xdg-desktop-portal-kde-6.5.4/src/notification.cpp:60:76: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType().
#   60 |             } else if (icon.str == QStringLiteral("bytes") && iconData.type() == QVariant::ByteArray) {
#      |                                                               ~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:564:10: note: declared here
#  564 |     Type type() const
#      |          ^~~~
#   58|               if (icon.str == QStringLiteral("themed") && iconData.type() == QVariant::StringList) {
#   59|                   notify->setIconName(iconData.toStringList().first());
#   60|->             } else if (icon.str == QStringLiteral("bytes") && iconData.type() == QVariant::ByteArray) {
#   61|                   QPixmap pixmap;
#   62|                   if (pixmap.loadFromData(iconData.toByteArray(), "PNG")) {

Error: COMPILER_WARNING (CWE-477): [#def9]
xdg-desktop-portal-kde-6.5.4/src/region-select/SelectionEditor.cpp: scope_hint: In member function ‘void SelectionEditor::showViews()’
xdg-desktop-portal-kde-6.5.4/src/region-select/SelectionEditor.cpp:140:17: warning[-Wdeprecated-declarations]: ‘Qt::MaximizeUsingFullscreenGeometryHint’ is deprecated: Use Qt::ExpandedClientAreaHint instead
#  140 |             Qt::MaximizeUsingFullscreenGeometryHint, // also use the areas where system UIs are
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qobjectdefs.h:12: included_from: Included from here.
/usr/include/qt6/QtCore/qobject.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/qabstracteventdispatcher.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qbasictimer.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qcoreevent.h:7: included_from: Included from here.
/usr/include/qt6/QtGui/qevent.h:13: included_from: Included from here.
/usr/include/qt6/QtGui/QKeyEvent:1: included_from: Included from here.
xdg-desktop-portal-kde-6.5.4/src/region-select/SelectionEditor.h:3: included_from: Included from here.
xdg-desktop-portal-kde-6.5.4/src/region-select/SelectionEditor.cpp:1: included_from: Included from here.
/usr/include/qt6/QtCore/qnamespace.h:244:9: note: declared here
#  244 |         MaximizeUsingFullscreenGeometryHint Q_DECL_ENUMERATOR_DEPRECATED_X(
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  138|               Qt::FramelessWindowHint,
#  139|               Qt::NoDropShadowWindowHint,
#  140|->             Qt::MaximizeUsingFullscreenGeometryHint, // also use the areas where system UIs are
#  141|           });
#  142|           view->setWindowStates(Qt::WindowFullScreen);

Error: COMPILER_WARNING (CWE-563): [#def10]
xdg-desktop-portal-kde-6.5.4/src/region-select/SelectionEditor.cpp: scope_hint: In member function ‘virtual bool SelectionEditor::eventFilter(QObject*, QEvent*)’
xdg-desktop-portal-kde-6.5.4/src/region-select/SelectionEditor.cpp:159:44: warning[-Wunused-parameter]: unused parameter ‘watched’
#  159 | bool SelectionEditor::eventFilter(QObject *watched, QEvent *event)
#      |                                   ~~~~~~~~~^~~~~~~
#  157|   }
#  158|   
#  159|-> bool SelectionEditor::eventFilter(QObject *watched, QEvent *event)
#  160|   {
#  161|       switch (event->type()) {

Error: COMPILER_WARNING (CWE-563): [#def11]
xdg-desktop-portal-kde-6.5.4/src/session.cpp: scope_hint: In member function ‘void RemoteDesktopSession::setOptions(const QVariantMap&)’
xdg-desktop-portal-kde-6.5.4/src/session.cpp:232:58: warning[-Wunused-parameter]: unused parameter ‘options’
#  232 | void RemoteDesktopSession::setOptions(const QVariantMap &options)
#      |                                       ~~~~~~~~~~~~~~~~~~~^~~~~~~
#  230|   }
#  231|   
#  232|-> void RemoteDesktopSession::setOptions(const QVariantMap &options)
#  233|   {
#  234|   }

Error: COMPILER_WARNING (CWE-477): [#def12]
xdg-desktop-portal-kde-6.5.4/src/settings.cpp: scope_hint: In constructor ‘FdoAppearanceSettings::FdoAppearanceSettings(QObject*)’
xdg-desktop-portal-kde-6.5.4/src/settings.cpp:219:44: warning[-Wdeprecated-declarations]: ‘void QGuiApplication::paletteChanged(const QPalette&)’ is deprecated: Handle QEvent::ApplicationPaletteChange instead
#  219 |         connect(qGuiApp, &QGuiApplication::paletteChanged, this, &FdoAppearanceSettings::onPaletteChanged);
#      |                                            ^~~~~~~~~~~~~~
/usr/include/qt6/QtWidgets/qapplication.h:14: included_from: Included from here.
/usr/include/qt6/QtWidgets/QApplication:1: included_from: Included from here.
xdg-desktop-portal-kde-6.5.4/src/settings.cpp:13: included_from: Included from here.
/usr/include/qt6/QtGui/qguiapplication.h:161:89: note: declared here
#  161 |     QT_DEPRECATED_VERSION_X_6_0("Handle QEvent::ApplicationPaletteChange instead") void paletteChanged(const QPalette &pal);
#      |                                                                                         ^~~~~~~~~~~~~~
#  217|       {
#  218|           qDBusRegisterMetaType<AccentColorArray>();
#  219|->         connect(qGuiApp, &QGuiApplication::paletteChanged, this, &FdoAppearanceSettings::onPaletteChanged);
#  220|       }
#  221|   

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-253.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namexdg-desktop-portal-kde-6.5.4-1.fc44
store-results-to/tmp/tmp3_kxesjm/xdg-desktop-portal-kde-6.5.4-1.fc44.tar.xz
time-created2026-01-08 22:10:19
time-finished2026-01-08 22:13:51
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp3_kxesjm/xdg-desktop-portal-kde-6.5.4-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp3_kxesjm/xdg-desktop-portal-kde-6.5.4-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9