deepin-network-core-2.0.32-2.fc42

List of Findings

Error: COMPILER_WARNING (CWE-665): [#def1]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/common-plugin/networkpluginhelper.cpp:38:1: warning[-Wreorder]:   when initialized here
#   38 | NetworkPluginHelper::NetworkPluginHelper(NetworkDialog *networkDialog, QObject *parent)
#      | ^~~~~~~~~~~~~~~~~~~
#   36|   NETWORKPLUGIN_USE_NAMESPACE
#   37|   
#   38|-> NetworkPluginHelper::NetworkPluginHelper(NetworkDialog *networkDialog, QObject *parent)
#   39|       : QObject(parent)
#   40|       , m_pluginState(PluginState::Unknown)

Error: COMPILER_WARNING (CWE-665): [#def2]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/common-plugin/networkpluginhelper.h:107:12: warning[-Wreorder]:   ‘QIcon* dde::networkplugin::NetworkPluginHelper::m_trayIcon’
#  107 |     QIcon *m_trayIcon;
#      |            ^~~~~~~~~~
#  105|       QString m_lastActiveWirelessDevicePath;
#  106|       NetworkDialog *m_networkDialog;
#  107|->     QIcon *m_trayIcon;
#  108|       QTimer *m_refreshIconTimer;
#  109|       bool m_isDarkIcon; // 是深色主题

Error: COMPILER_WARNING (CWE-665): [#def3]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/common-plugin/networkpluginhelper.h:108:13: warning[-Wreorder]:   ‘QTimer* dde::networkplugin::NetworkPluginHelper::m_refreshIconTimer’
#  108 |     QTimer *m_refreshIconTimer;
#      |             ^~~~~~~~~~~~~~~~~~
#  106|       NetworkDialog *m_networkDialog;
#  107|       QIcon *m_trayIcon;
#  108|->     QTimer *m_refreshIconTimer;
#  109|       bool m_isDarkIcon; // 是深色主题
#  110|   };

Error: COMPILER_WARNING (CWE-665): [#def4]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/common-plugin/networkpluginhelper.h:108:13: warning[-Wreorder]: ‘dde::networkplugin::NetworkPluginHelper::m_refreshIconTimer’ will be initialized after
#  108 |     QTimer *m_refreshIconTimer;
#      |             ^~~~~~~~~~~~~~~~~~
#  106|       NetworkDialog *m_networkDialog;
#  107|       QIcon *m_trayIcon;
#  108|->     QTimer *m_refreshIconTimer;
#  109|       bool m_isDarkIcon; // 是深色主题
#  110|   };

Error: COMPILER_WARNING (CWE-665): [#def5]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/common-plugin/networkpluginhelper.cpp:5: included_from: Included from here.
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/common-plugin/networkpluginhelper.h: scope_hint: In constructor ‘dde::networkplugin::NetworkPluginHelper::NetworkPluginHelper(dde::networkplugin::NetworkDialog*, QObject*)’
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/common-plugin/networkpluginhelper.h:109:10: warning[-Wreorder]: ‘dde::networkplugin::NetworkPluginHelper::m_isDarkIcon’ will be initialized after
#  109 |     bool m_isDarkIcon; // 是深色主题
#      |          ^~~~~~~~~~~~
#  107|       QIcon *m_trayIcon;
#  108|       QTimer *m_refreshIconTimer;
#  109|->     bool m_isDarkIcon; // 是深色主题
#  110|   };
#  111|   }

Error: COMPILER_WARNING (CWE-563): [#def6]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/dcc-network-plugin/window/editpage/connectionwirelesseditpage.cpp: scope_hint: In member function ‘void ConnectionWirelessEditPage::initApSecretType(NetworkManager::AccessPoint::Ptr)’
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/dcc-network-plugin/window/editpage/connectionwirelesseditpage.cpp:81:42: warning[-Wunused-variable]: unused variable ‘accessPointWpaFlagState’
#   81 |     NetworkManager::AccessPoint::WpaFlag accessPointWpaFlagState = NetworkManager::AccessPoint::WpaFlag::KeyMgmtSAE;
#      |                                          ^~~~~~~~~~~~~~~~~~~~~~~
#   79|           keyMgmt = WirelessSecuritySetting::KeyMgmt::WpaPsk;
#   80|   
#   81|->     NetworkManager::AccessPoint::WpaFlag accessPointWpaFlagState = NetworkManager::AccessPoint::WpaFlag::KeyMgmtSAE;
#   82|   
#   83|       // 判断是否是wpa3加密的,因为wpa3加密方式,实际上是wpa2的扩展,所以其中会包含KeyMgmtPsk枚举值

Error: COMPILER_WARNING (CWE-665): [#def7]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/dss-network-plugin/network_module.cpp:41:1: warning[-Wreorder]:   when initialized here
#   41 | NetworkModule::NetworkModule(QObject *parent)
#      | ^~~~~~~~~~~~~
#   39|   namespace module {
#   40|   
#   41|-> NetworkModule::NetworkModule(QObject *parent)
#   42|       : QObject(parent)
#   43|       , m_lastState(NetworkManager::Device::State::UnknownState)

Error: COMPILER_WARNING (CWE-665): [#def8]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/dss-network-plugin/network_module.h:90:10: warning[-Wreorder]:   ‘bool dss::module::NetworkModule::m_initilized’
#   90 |     bool m_initilized;
#      |          ^~~~~~~~~~~~
#   88|       bool m_isLockModel;  // 锁屏 or greeter
#   89|       bool m_isLockScreen; // 锁屏显示
#   90|->     bool m_initilized;
#   91|   
#   92|       QSet<QString> m_devicePaths; // 记录无线设备Path,防止信号重复连接

Error: COMPILER_WARNING (CWE-665): [#def9]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/dss-network-plugin/network_module.cpp:5: included_from: Included from here.
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/dss-network-plugin/network_module.h: scope_hint: In constructor ‘dss::module::NetworkModule::NetworkModule(QObject*)’
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/dss-network-plugin/network_module.h:96:35: warning[-Wreorder]: ‘dss::module::NetworkModule::m_lastState’ will be initialized after
#   96 |     NetworkManager::Device::State m_lastState;
#      |                                   ^~~~~~~~~~~
#   94|       QString m_lastConnection;
#   95|       QString m_lastConnectionUuid;
#   96|->     NetworkManager::Device::State m_lastState;
#   97|       int m_clickTime;
#   98|   };

Error: COMPILER_WARNING (CWE-563): [#def10]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/dccplugintestwidget.cpp:48:12: warning[-Wunused-variable]: ‘WidgetMinimumWidth’ defined but not used
#   48 | static int WidgetMinimumWidth = 820;
#      |            ^~~~~~~~~~~~~~~~~~
#   46|   const QSize ListViweItemSize_ListMode(168, 48);
#   47|   
#   48|-> static int WidgetMinimumWidth = 820;
#   49|   static int WidgetMinimumHeight = 634;
#   50|   

Error: COMPILER_WARNING (CWE-563): [#def11]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/dccplugintestwidget.cpp: scope_hint: At global scope
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/dccplugintestwidget.cpp:49:12: warning[-Wunused-variable]: ‘WidgetMinimumHeight’ defined but not used
#   49 | static int WidgetMinimumHeight = 634;
#      |            ^~~~~~~~~~~~~~~~~~~
#   47|   
#   48|   static int WidgetMinimumWidth = 820;
#   49|-> static int WidgetMinimumHeight = 634;
#   50|   
#   51|   const int second_widget_min_width = 230;

Error: COMPILER_WARNING (CWE-563): [#def12]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/dccplugintestwidget.cpp: scope_hint: In member function ‘void dccV23::MainModulePrivate::onCurrentModuleChanged(dccV23::ModuleObject*)’
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/dccplugintestwidget.cpp:93:30: warning[-Wunused-variable]: unused variable ‘model’
#   93 |             ModuleDataModel *model = static_cast<ModuleDataModel *>(m_view->model());
#      |                              ^~~~~
#   91|               m_view->setSpacing(0);
#   92|               m_layout->addWidget(child->activePage(), 5);
#   93|->             ModuleDataModel *model = static_cast<ModuleDataModel *>(m_view->model());
#   94|           } else {
#   95|               m_view->setViewMode(QListView::IconMode);

Error: COMPILER_WARNING (CWE-563): [#def13]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/dccplugintestwidget.cpp: scope_hint: In member function ‘void DccPluginTestWidget::showPage(dccV23::ModuleObject*, const QString&, const UrlType&)’
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/dccplugintestwidget.cpp:274:9: warning[-Wunused-but-set-variable]: variable ‘index’ set but not used
#  274 |     int index = -1;
#      |         ^~~~~
#  272|       QStringList names = url.split('/');
#  273|       const QString &name = names.takeFirst();
#  274|->     int index = -1;
#  275|       QString childName;
#  276|       for (auto child : module->childrens()) {

Error: COMPILER_WARNING (CWE-477): [#def14]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/networkhandler.cpp: scope_hint: In function ‘int getInput(const QString&, QString&)’
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/networkhandler.cpp:36:29: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl
#   36 |     qout << inputMessage << endl;
#      |                             ^~~~
/usr/include/qt5/QtCore/qdebug.h:49: included_from: Included from here.
/usr/include/qt5/QtCore/qcborcommon.h:45: included_from: Included from here.
/usr/include/qt5/QtCore/qcborvalue.h:45: included_from: Included from here.
/usr/include/qt5/QtCore/qjsonvalue.h:46: included_from: Included from here.
/usr/include/qt5/QtCore/qjsonobject.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/QJsonObject:1: included_from: Included from here.
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/src/networkconst.h:9: included_from: Included from here.
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/networkhandler.h:9: included_from: Included from here.
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/example/networkhandler.cpp:5: included_from: Included from here.
/usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here
#  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
#      |                                                                           ^~~~
#   34|       QTextStream qout(stdout);
#   35|   
#   36|->     qout << inputMessage << endl;
#   37|       qin >> inputStr;
#   38|       int selection = inputStr.toInt();

Error: COMPILER_WARNING (CWE-457): [#def15]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/src/realize/networkmanagerprocesser.cpp: scope_hint: In member function ‘dde::network::NetworkManagerProcesser::onConnectivityChanged(NetworkManager::Connectivity)’
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/src/realize/networkmanagerprocesser.cpp:284:5: warning[-Wmaybe-uninitialized]: ‘ctity’ may be used uninitialized
#  284 |     if (m_connectivity != ctity) {
#      |     ^~
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/src/realize/networkmanagerprocesser.cpp:261:32: note: ‘ctity’ was declared here
#  261 |     dde::network::Connectivity ctity;
#      |                                ^~~~~
#  282|       }
#  283|       }
#  284|->     if (m_connectivity != ctity) {
#  285|           m_connectivity = ctity;
#  286|           for (NetworkDeviceBase *device : m_devices) {

Error: COMPILER_WARNING (CWE-563): [#def16]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/tests/ts_proxycontroller.cpp: scope_hint: In member function ‘virtual void Tst_ProxyController_dslcontroll_test_Test::TestBody()’
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/tests/ts_proxycontroller.cpp:36:17: warning[-Wunused-variable]: unused variable ‘method’
#   36 |     ProxyMethod method = m_controller->proxyMethod();
#      |                 ^~~~~~
#   34|       QString autoProxy = m_controller->autoProxy();
#   35|       AppProxyConfig appConf = m_controller->appProxy();
#   36|->     ProxyMethod method = m_controller->proxyMethod();
#   37|       bool appProxyExist = m_controller->appProxyExist();
#   38|   

Error: COMPILER_WARNING (CWE-563): [#def17]
deepin-network-core-2.0.32-build/dde-network-core-2.0.32/tests/ts_proxycontroller.cpp:37:10: warning[-Wunused-variable]: unused variable ‘appProxyExist’
#   37 |     bool appProxyExist = m_controller->appProxyExist();
#      |          ^~~~~~~~~~~~~
#   35|       AppProxyConfig appConf = m_controller->appProxy();
#   36|       ProxyMethod method = m_controller->proxyMethod();
#   37|->     bool appProxyExist = m_controller->appProxyExist();
#   38|   
#   39|       m_controller->setProxy(SysProxyType::Ftp, "127.0.0.1", "2512");

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-54.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namedeepin-network-core-2.0.32-2.fc42
store-results-to/tmp/tmp43kz8ppc/deepin-network-core-2.0.32-2.fc42.tar.xz
time-created2024-11-12 23:40:15
time-finished2024-11-12 23:43:59
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp43kz8ppc/deepin-network-core-2.0.32-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp43kz8ppc/deepin-network-core-2.0.32-2.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9