plasma-nm-6.5.4-1.fc44

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
plasma-nm-6.5.4/kcms/kcm_connections/kcm.cpp: scope_hint: In member function ‘QString KCMNetworkmanagement::vpnFileFromArgs(const QVariantList&) const’
plasma-nm-6.5.4/kcms/kcm_connections/kcm.cpp:239:34: warning[-Wdeprecated-declarations]: ‘bool QVariant::canConvert(int) const’ is deprecated
#  239 |         if (argVariant.canConvert(QMetaType::QString)) {
#      |             ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtDBus/qtdbusglobal.h:10: included_from: Included from here.
/usr/include/qt6/QtDBus/qdbuspendingcall.h:8: included_from: Included from here.
/usr/include/qt6/QtDBus/QDBusPendingCallWatcher:1: included_from: Included from here.
plasma-nm-6.5.4/libs/editor/connectioneditorbase.h:12: included_from: Included from here.
plasma-nm-6.5.4/libs/editor/connectioneditortabwidget.h:12: included_from: Included from here.
plasma-nm-6.5.4/kcms/kcm_connections/kcm.h:10: included_from: Included from here.
plasma-nm-6.5.4/kcms/kcm_connections/kcm.cpp:7: included_from: Included from here.
/usr/include/qt6/QtCore/qvariant.h:491:10: note: declared here
#  491 |     bool canConvert(int targetTypeId) const
#      |          ^~~~~~~~~~
#  237|       static const QLatin1String vpnArgumentMarker{"VPN="};
#  238|       for (QVariant argVariant : args) {
#  239|->         if (argVariant.canConvert(QMetaType::QString)) {
#  240|               QString arg = argVariant.toString();
#  241|               if (arg.startsWith(vpnArgumentMarker)) {

Error: COMPILER_WARNING (CWE-477): [#def2]
plasma-nm-6.5.4/kcms/kcm_connections/kcm.cpp: scope_hint: In member function ‘NetworkManager::Connection::Ptr KCMNetworkmanagement::connectionFromArgs(const QVariantList&) const’
plasma-nm-6.5.4/kcms/kcm_connections/kcm.cpp:254:27: warning[-Wdeprecated-declarations]: ‘bool QVariant::canConvert(int) const’ is deprecated
#  254 |         if (arg.canConvert(QMetaType::QString)) {
#      |             ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:491:10: note: declared here
#  491 |     bool canConvert(int targetTypeId) const
#      |          ^~~~~~~~~~
#  252|       static const QLatin1String uuidArgumentMarker{"Uuid="};
#  253|       for (QVariant arg : args) {
#  254|->         if (arg.canConvert(QMetaType::QString)) {
#  255|               QString uuid = arg.toString();
#  256|               if (uuid.startsWith(uuidArgumentMarker)) {

Error: COMPILER_WARNING (CWE-252): [#def3]
plasma-nm-6.5.4/libs/editor/uiutils.cpp: scope_hint: In static member function ‘static bool UiUtils::isLiveImage()’
plasma-nm-6.5.4/libs/editor/uiutils.cpp:669:17: warning[-Wunused-result]: ignoring return value of ‘virtual bool QFile::open(QIODeviceBase::OpenMode)’, declared with attribute ‘nodiscard’
#  669 |     cmdFile.open(QIODevice::ReadOnly);
#      |     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/QFile:1: included_from: Included from here.
plasma-nm-6.5.4/libs/editor/uiutils.cpp:30: included_from: Included from here.
/usr/include/qt6/QtCore/qfile.h:291:32: note: declared here
#  291 |     QFILE_MAYBE_NODISCARD bool open(OpenMode flags) override;
#      |                                ^~~~
#  667|   
#  668|       QFile cmdFile(QStringLiteral("/proc/cmdline"));
#  669|->     cmdFile.open(QIODevice::ReadOnly);
#  670|   
#  671|       if (!cmdFile.isOpen()) {

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-158.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-nameplasma-nm-6.5.4-1.fc44
store-results-to/tmp/tmp0ptdaqsm/plasma-nm-6.5.4-1.fc44.tar.xz
time-created2026-01-08 20:24:34
time-finished2026-01-08 20:31:09
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp0ptdaqsm/plasma-nm-6.5.4-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp0ptdaqsm/plasma-nm-6.5.4-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9