kf6-kio-6.3.0-1.fc41
List of Defects
Error: CLANG_WARNING: [#def1]
kf6-kio-6.3.0-build/kio-6.3.0/src/filewidgets/knewfilemenu.cpp:890:48: warning[core.CallAndMessage]: Called C++ object pointer is null
# 888|
# 889| KNewFileMenuSingleton *s = kNewMenuGlobals();
# 890|-> const KNewFileMenuSingleton::Entry entry = s->templatesList->at(id - 1);
# 891|
# 892| const bool createSymlink = entry.templatePath == QLatin1String("__CREATE_SYMLINK__");
Error: CLANG_WARNING: [#def2]
kf6-kio-6.3.0-build/kio-6.3.0/src/gui/systemd/systemdprocessrunner.cpp:191:1: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 189| qCDebug(KIO_GUI) << "Successfully unref'd service:" << m_serviceName;
# 190| });
# 191|-> }
# 192|
# 193| void SystemdProcessRunner::handleUnitNew(const QString &newName, const QDBusObjectPath &newPath)
Error: CLANG_WARNING: [#def3]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/fdreceiver.cpp:64:13: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 62| FDMessageHeader msg;
# 63| if (::recvmsg(client, msg.message(), 0) == 2) {
# 64|-> ::memcpy(&m_fileDes, CMSG_DATA(msg.cmsgHeader()), sizeof m_fileDes);
# 65| }
# 66| ::close(client);
Error: COMPILER_WARNING (CWE-252): [#def4]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/file.cpp: scope_hint: In member function ‘KIO::WorkerResult FileProtocol::unmount(const QString&)’
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/file.cpp:935:11: warning[-Wunused-result]: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’
# 935 | system(buffer.constData());
# | ~~~~~~^~~~~~~~~~~~~~~~~~~~
# 933|
# 934| buffer = umountProg + ' ' + QFile::encodeName(KShell::quoteArg(_point)) + " 2>" + tmpFileName;
# 935|-> system(buffer.constData());
# 936|
# 937| QString err = readLogFile(tmpFileName);
Error: COMPILER_WARNING (CWE-252): [#def5]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/file_unix.cpp: scope_hint: In member function ‘virtual KIO::WorkerResult FileProtocol::copy(const QUrl&, const QUrl&, int, KIO::JobFlags)’
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/file_unix.cpp:843:26: warning[-Wunused-result]: ignoring return value of ‘int chown(const char*, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’
# 843 | (void)::chown(_dest.data(), buffSrc.st_uid, -1 /*keep group*/);
# | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 841| // as we are the owner of the new file, we can always change the group, but
# 842| // we might not be allowed to change the owner
# 843|-> (void)::chown(_dest.data(), buffSrc.st_uid, -1 /*keep group*/);
# 844| } else {
# 845| if (!tryChangeFileAttr(CHOWN, {_dest, buffSrc.st_uid, buffSrc.st_gid}, errno).success()) {
Error: CLANG_WARNING: [#def6]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/file_unix.cpp:1364:13: warning[deadcode.DeadStores]: Value stored to 'acl' is never read
# 1362| // user told us to delete the extended ACL, so let's write only
# 1363| // the minimal (UNIX permission bits) part
# 1364|-> acl = ACLPortability::acl_from_mode(perm);
# 1365| }
# 1366| acl = acl_from_text(ACLString.toLatin1().constData());
Error: CLANG_WARNING: [#def7]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/kauth/filehelper.cpp:116:5: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'seteuid' is not checked. If an error occurs in 'seteuid', the following code may execute with unexpected privileges
# 114| gid_t oldgid = p->gid;
# 115|
# 116|-> seteuid(olduid);
# 117| setegid(oldgid);
# 118| setgroups(1, &oldgid);
Error: COMPILER_WARNING (CWE-252): [#def8]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/kauth/filehelper.cpp: scope_hint: In function ‘void gainPrivilege(Privilege*)’
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/kauth/filehelper.cpp:116:12: warning[-Wunused-result]: ignoring return value of ‘int seteuid(__uid_t)’ declared with attribute ‘warn_unused_result’
# 116 | seteuid(olduid);
# | ~~~~~~~^~~~~~~~
# 114| gid_t oldgid = p->gid;
# 115|
# 116|-> seteuid(olduid);
# 117| setegid(oldgid);
# 118| setgroups(1, &oldgid);
Error: CLANG_WARNING: [#def9]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/kauth/filehelper.cpp:117:5: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setegid' is not checked. If an error occurs in 'setegid', the following code may execute with unexpected privileges
# 115|
# 116| seteuid(olduid);
# 117|-> setegid(oldgid);
# 118| setgroups(1, &oldgid);
# 119| }
Error: COMPILER_WARNING (CWE-252): [#def10]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/kauth/filehelper.cpp:117:12: warning[-Wunused-result]: ignoring return value of ‘int setegid(__gid_t)’ declared with attribute ‘warn_unused_result’
# 117 | setegid(oldgid);
# | ~~~~~~~^~~~~~~~
# 115|
# 116| seteuid(olduid);
# 117|-> setegid(oldgid);
# 118| setgroups(1, &oldgid);
# 119| }
Error: CLANG_WARNING: [#def11]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/file/kauth/filehelper.cpp:275:1: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 273| }
# 274|
# 275|-> KAUTH_HELPER_MAIN("org.kde.kio.file", FileHelper)
# 276|
# 277| #include "moc_filehelper.cpp"
Error: COMPILER_WARNING (CWE-477): [#def12]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/help/main.cpp: scope_hint: In function ‘int kdemain(int, char**)’
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/help/main.cpp:56:33: warning[-Wdeprecated-declarations]: ‘int xmlSubstituteEntitiesDefault(int)’ is deprecated
# 56 | xmlSubstituteEntitiesDefault(1);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/libxml2/libxml/tree.h:17: included_from: Included from here.
/usr/include/libxml2/libxml/HTMLtree.h:16: included_from: Included from here.
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/help/main.cpp:20: included_from: Included from here.
/usr/include/libxml2/libxml/parser.h:953:17: note: declared here
# 953 | xmlSubstituteEntitiesDefault(int val);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 54|
# 55| LIBXML_TEST_VERSION
# 56|-> xmlSubstituteEntitiesDefault(1);
# 57| xmlLoadExtDtdDefaultValue = 1;
# 58| exsltRegisterAll();
Error: COMPILER_WARNING (CWE-477): [#def13]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/help/main_ghelp.cpp: scope_hint: In function ‘int kdemain(int, char**)’
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/help/main_ghelp.cpp:49:33: warning[-Wdeprecated-declarations]: ‘int xmlSubstituteEntitiesDefault(int)’ is deprecated
# 49 | xmlSubstituteEntitiesDefault(1);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/libxml2/libxml/tree.h:17: included_from: Included from here.
/usr/include/libxml2/libxml/HTMLtree.h:16: included_from: Included from here.
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/help/main_ghelp.cpp:16: included_from: Included from here.
/usr/include/libxml2/libxml/parser.h:953:17: note: declared here
# 953 | xmlSubstituteEntitiesDefault(int val);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 47|
# 48| LIBXML_TEST_VERSION
# 49|-> xmlSubstituteEntitiesDefault(1);
# 50| xmlLoadExtDtdDefaultValue = 1;
# 51| exsltRegisterAll();
Error: CLANG_WARNING: [#def14]
kf6-kio-6.3.0-build/kio-6.3.0/src/kioworkers/trash/kio_trash.cpp:225:13: warning[deadcode.DeadStores]: Value stored to 'ok' is never read
# 223| if (QFile::exists(destPath)) {
# 224| if (overwrite) {
# 225|-> ok = QFile::remove(destPath);
# 226| Q_ASSERT(ok); // ### TODO
# 227| } else {
Error: CLANG_WARNING: [#def15]
kf6-kio-6.3.0-build/kio-6.3.0/src/widgets/imagefilter.cpp:111:21: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 109| stackpix = &stack[stackindex];
# 110|
# 111|-> sum_out += *stackpix;
# 112| sum_in -= *stackpix;
# 113| } // for (x = 0, ...)
Error: CLANG_WARNING: [#def16]
kf6-kio-6.3.0-build/kio-6.3.0/src/widgets/imagefilter.cpp:187:21: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 185| stackpix = &stack[stackindex];
# 186|
# 187|-> sum_out += *stackpix;
# 188| sum_in -= *stackpix;
# 189| } // for (y = 0, ...)
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-177.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | kf6-kio-6.3.0-1.fc41 |
store-results-to | /tmp/tmp7bf61r7h/kf6-kio-6.3.0-1.fc41.tar.xz |
time-created | 2024-07-03 14:17:02 |
time-finished | 2024-07-03 14:26:16 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp7bf61r7h/kf6-kio-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp7bf61r7h/kf6-kio-6.3.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |