xdg-desktop-portal-kde-6.2.3-1.fc42

List of Findings

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

Error: COMPILER_WARNING (CWE-477): [#def2]
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/src/dynamiclauncher.cpp: scope_hint: In member function ‘uint DynamicLauncherPortal::PrepareInstall(const QDBusObjectPath&, const QString&, const QString&, const QString&, const QDBusVariant&, const QVariantMap&, QVariantMap&)’
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/src/dynamiclauncher.cpp:136:68: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType().
#  136 |     if (editableIcon && dialog.m_icon != icon && dialog.m_icon.type() == QVariant::String) {
#      |                                                  ~~~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
#  433 |     Type type() const
#      |          ^~~~
#  134|       }
#  135|   
#  136|->     if (editableIcon && dialog.m_icon != icon && dialog.m_icon.type() == QVariant::String) {
#  137|           const auto data = iconFromName(dialog.m_icon.toString());
#  138|           if (!data.isEmpty()) {

Error: COMPILER_WARNING (CWE-563): [#def3]
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/src/inputcapturedialog.cpp: scope_hint: In constructor ‘InputCaptureDialog::InputCaptureDialog(const QString&, InputCapturePortal::Capabilities, QObject*)’
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/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): [#def4]
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/src/notification.cpp: scope_hint: In member function ‘void NotificationPortal::AddNotification(const QString&, const QString&, const QVariantMap&)’
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/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:9: included_from: Included from here.
/usr/include/qt6/QtDBus/qdbusabstractadaptor.h:7: included_from: Included from here.
/usr/include/qt6/QtDBus/QDBusAbstractAdaptor:1: included_from: Included from here.
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/src/notification.h:12: included_from: Included from here.
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/src/notification.cpp:8: included_from: Included from here.
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
#  433 |     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): [#def5]
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/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:433:10: note: declared here
#  433 |     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): [#def6]
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/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:433:10: note: declared here
#  433 |     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-563): [#def7]
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/src/region-select/SelectionEditor.cpp: scope_hint: In member function ‘virtual bool SelectionEditor::eventFilter(QObject*, QEvent*)’
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/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): [#def8]
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/src/session.cpp: scope_hint: In member function ‘void RemoteDesktopSession::setOptions(const QVariantMap&)’
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/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: COMPILER_WARNING (CWE-477): [#def9]
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/src/settings.cpp: scope_hint: In constructor ‘FdoAppearanceSettings::FdoAppearanceSettings(QObject*)’
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/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:13: included_from: Included from here.
/usr/include/qt6/QtWidgets/QApplication:1: included_from: Included from here.
xdg-desktop-portal-kde-6.2.3-build/xdg-desktop-portal-kde-6.2.3/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.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-201.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namexdg-desktop-portal-kde-6.2.3-1.fc42
store-results-to/tmp/tmpyr8hjsox/xdg-desktop-portal-kde-6.2.3-1.fc42.tar.xz
time-created2024-11-13 03:39:09
time-finished2024-11-13 03:42:05
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpyr8hjsox/xdg-desktop-portal-kde-6.2.3-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpyr8hjsox/xdg-desktop-portal-kde-6.2.3-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9