kio-extras-24.08.3-1.fc42

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
kio-extras-24.08.3-build/kio-extras-24.08.3/activities/common/database/Database.cpp: scope_hint: In member function ‘QSqlQuery Common::Database::execQuery(const QString&, bool) const’
kio-extras-24.08.3-build/kio-extras-24.08.3/activities/common/database/Database.cpp:224:58: warning[-Wunused-parameter]: unused parameter ‘ignoreErrors’
#  224 | QSqlQuery Database::execQuery(const QString &query, bool ignoreErrors) const
#      |                                                     ~~~~~^~~~~~~~~~~~
#  222|   }
#  223|   
#  224|-> QSqlQuery Database::execQuery(const QString &query, bool ignoreErrors) const
#  225|   {
#  226|   #ifdef QT_NO_DEBUG

Error: COMPILER_WARNING (CWE-477): [#def2]
kio-extras-24.08.3-build/kio-extras-24.08.3/activities/fileitemplugin/FileItemLinkingPluginActionLoader.cpp: scope_hint: In member function ‘virtual void FileItemLinkingPluginActionLoader::run()’
kio-extras-24.08.3-build/kio-extras-24.08.3/activities/fileitemplugin/FileItemLinkingPluginActionLoader.cpp:84:30: warning[-Wdeprecated-declarations]: ‘void QSqlField::setType(QVariant::Type)’ is deprecated: Use setMetaType() instead
#   84 |                 field.setType(QVariant::String);
#      |                 ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtSql/QSqlField:1: included_from: Included from here.
kio-extras-24.08.3-build/kio-extras-24.08.3/activities/fileitemplugin/FileItemLinkingPluginActionLoader.cpp:21: included_from: Included from here.
/usr/include/qt6/QtSql/qsqlfield.h:75:10: note: declared here
#   75 |     void setType(QVariant::Type type) { setMetaType(QMetaType(int(type))); }
#      |          ^~~~~~~
#   82|                   QStringList escapedFiles;
#   83|                   QSqlField field;
#   84|->                 field.setType(QVariant::String);
#   85|   
#   86|                   const auto urlList = items.urlList();

Error: COMPILER_WARNING: [#def3]
kio-extras-24.08.3-build/kio-extras-24.08.3/man/man2html.cpp: scope_hint: In function ‘char* scan_escape_direct(char*, QByteArray&)’
kio-extras-24.08.3-build/kio-extras-24.08.3/man/man2html.cpp:1873:16: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1873 |         curpos = 0;
#      |         ~~~~~~~^~~
kio-extras-24.08.3-build/kio-extras-24.08.3/man/man2html.cpp:1874:5: note: here
# 1874 |     case 'b':
#      |     ^~~~
# 1871|       case 'l':
# 1872|           cstr = "<HR>";
# 1873|->         curpos = 0;
# 1874|       case 'b':
# 1875|       case 'v':

Error: COMPILER_WARNING: [#def4]
kio-extras-24.08.3-build/kio-extras-24.08.3/man/man2html.cpp: scope_hint: In function ‘char* scan_table(char*)’
kio-extras-24.08.3-build/kio-extras-24.08.3/man/man2html.cpp:2483:21: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 2483 |                     if (prev->has(ti1))
#      |                     ^~
kio-extras-24.08.3-build/kio-extras-24.08.3/man/man2html.cpp:2485:17: note: here
# 2485 |                 default:
#      |                 ^~~~~~~
# 2481|                       break;
# 2482|                   case '^':
# 2483|->                     if (prev->has(ti1))
# 2484|                           prev->at(ti1).rowspan++;
# 2485|                   default:

Error: COMPILER_WARNING: [#def5]
kio-extras-24.08.3-build/kio-extras-24.08.3/man/man2html.cpp:2525:48: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 2525 |                     currow->at(curfield).space += 4;
#      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
kio-extras-24.08.3-build/kio-extras-24.08.3/man/man2html.cpp:2526:17: note: here
# 2526 |                 case 'R':
#      |                 ^~~~
# 2523|                   switch (currow->at(curfield).align) {
# 2524|                   case 'N':
# 2525|->                     currow->at(curfield).space += 4;
# 2526|                   case 'R':
# 2527|                       out_html(" ALIGN=right");

Error: COMPILER_WARNING (CWE-563): [#def6]
kio-extras-24.08.3-build/kio-extras-24.08.3/mtp/kio_mtp.cpp: scope_hint: In member function ‘virtual KIO::WorkerResult MTPWorker::chmod(const QUrl&, int)’
kio-extras-24.08.3-build/kio-extras-24.08.3/mtp/kio_mtp.cpp:840:48: warning[-Wunused-parameter]: unused parameter ‘url’
#  840 | KIO::WorkerResult MTPWorker::chmod(const QUrl &url, int permissions)
#      |                                    ~~~~~~~~~~~~^~~
#  838|   }
#  839|   
#  840|-> KIO::WorkerResult MTPWorker::chmod(const QUrl &url, int permissions)
#  841|   {
#  842|       return WorkerResult::pass();

Error: COMPILER_WARNING (CWE-563): [#def7]
kio-extras-24.08.3-build/kio-extras-24.08.3/mtp/kio_mtp.cpp:840:57: warning[-Wunused-parameter]: unused parameter ‘permissions’
#  840 | KIO::WorkerResult MTPWorker::chmod(const QUrl &url, int permissions)
#      |                                                     ~~~~^~~~~~~~~~~
#  838|   }
#  839|   
#  840|-> KIO::WorkerResult MTPWorker::chmod(const QUrl &url, int permissions)
#  841|   {
#  842|       return WorkerResult::pass();

Error: COMPILER_WARNING (CWE-563): [#def8]
kio-extras-24.08.3-build/kio-extras-24.08.3/mtp/kio_mtp.cpp: scope_hint: In member function ‘virtual KIO::WorkerResult MTPWorker::chown(const QUrl&, const QString&, const QString&)’
kio-extras-24.08.3-build/kio-extras-24.08.3/mtp/kio_mtp.cpp:845:48: warning[-Wunused-parameter]: unused parameter ‘url’
#  845 | KIO::WorkerResult MTPWorker::chown(const QUrl &url, const QString &owner, const QString &group)
#      |                                    ~~~~~~~~~~~~^~~
#  843|   }
#  844|   
#  845|-> KIO::WorkerResult MTPWorker::chown(const QUrl &url, const QString &owner, const QString &group)
#  846|   {
#  847|       return WorkerResult::pass();

Error: COMPILER_WARNING (CWE-563): [#def9]
kio-extras-24.08.3-build/kio-extras-24.08.3/mtp/kio_mtp.cpp:845:68: warning[-Wunused-parameter]: unused parameter ‘owner’
#  845 | KIO::WorkerResult MTPWorker::chown(const QUrl &url, const QString &owner, const QString &group)
#      |                                                     ~~~~~~~~~~~~~~~^~~~~
#  843|   }
#  844|   
#  845|-> KIO::WorkerResult MTPWorker::chown(const QUrl &url, const QString &owner, const QString &group)
#  846|   {
#  847|       return WorkerResult::pass();

Error: COMPILER_WARNING (CWE-563): [#def10]
kio-extras-24.08.3-build/kio-extras-24.08.3/mtp/kio_mtp.cpp:845:90: warning[-Wunused-parameter]: unused parameter ‘group’
#  845 | KIO::WorkerResult MTPWorker::chown(const QUrl &url, const QString &owner, const QString &group)
#      |                                                                           ~~~~~~~~~~~~~~~^~~~~
#  843|   }
#  844|   
#  845|-> KIO::WorkerResult MTPWorker::chown(const QUrl &url, const QString &owner, const QString &group)
#  846|   {
#  847|       return WorkerResult::pass();

Error: COMPILER_WARNING (CWE-563): [#def11]
kio-extras-24.08.3-build/kio-extras-24.08.3/mtp/kiod_module/mtpstorage.cpp: scope_hint: In member function ‘QDBusObjectPath MTPStorage::getFilesAndFolders2(const QString&)’
kio-extras-24.08.3-build/kio-extras-24.08.3/mtp/kiod_module/mtpstorage.cpp:564:64: warning[-Wunused-parameter]: unused parameter ‘path’
#  564 | QDBusObjectPath MTPStorage::getFilesAndFolders2(const QString &path)
#      |                                                 ~~~~~~~~~~~~~~~^~~~
#  562|   }
#  563|   
#  564|-> QDBusObjectPath MTPStorage::getFilesAndFolders2(const QString &path)
#  565|   {
#  566|   #if defined(HAVE_LIBMTP_Get_Children)

Error: COMPILER_WARNING (CWE-563): [#def12]
kio-extras-24.08.3-build/kio-extras-24.08.3/recentlyused/recentlyused.cpp: scope_hint: In function ‘KActivities::Stats::ResultModel* runQuery(const QUrl&, int)’
kio-extras-24.08.3-build/kio-extras-24.08.3/recentlyused/recentlyused.cpp:83:44: warning[-Wunused-parameter]: unused parameter ‘limit’
#   83 | ResultModel *runQuery(const QUrl &url, int limit)
#      |                                        ~~~~^~~~~
#   81|   }
#   82|   
#   83|-> ResultModel *runQuery(const QUrl &url, int limit)
#   84|   {
#   85|       qCDebug(KIO_RECENTLYUSED_LOG) << "runQuery for url" << url.toString();

Error: COMPILER_WARNING (CWE-1023): [#def13]
kio-extras-24.08.3-build/kio-extras-24.08.3/smb/kded/watcher.cpp: scope_hint: In member function ‘bool Watcher::isInterestingUrl(const QString&)’
kio-extras-24.08.3-build/kio-extras-24.08.3/smb/kded/watcher.cpp:147:16: warning[-Wswitch]: enumeration value ‘SMBURLTYPE_PRINTER’ not handled in switch
#  147 |         switch (url.getType()) {
#      |                ^
#  145|       {
#  146|           SMBUrl url{QUrl(str)};
#  147|->         switch (url.getType()) {
#  148|           case SMBURLTYPE_UNKNOWN:
#  149|           case SMBURLTYPE_ENTIRE_NETWORK:

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-94.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namekio-extras-24.08.3-1.fc42
store-results-to/tmp/tmp77qq4v_x/kio-extras-24.08.3-1.fc42.tar.xz
time-created2024-11-13 01:14:08
time-finished2024-11-13 01:19:20
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp77qq4v_x/kio-extras-24.08.3-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp77qq4v_x/kio-extras-24.08.3-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9