kf6-kservice-6.3.0-1.fc41
List of Defects
Error: COMPILER_WARNING (CWE-252): [#def1]
kf6-kservice-6.3.0-build/kservice-6.3.0/src/sycoca/kbuildsycoca.cpp: scope_hint: In member function ‘bool KBuildSycoca::recreate(bool)’
kf6-kservice-6.3.0-build/kservice-6.3.0/src/sycoca/kbuildsycoca.cpp:423:23: warning[-Wunused-result]: ignoring return value of ‘int fchown(int, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’
# 423 | fchown(database.handle(), uid, gid);
# | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 421| const int gid = qEnvironmentVariableIntValue("SUDO_GID");
# 422| if (uid && gid) {
# 423|-> fchown(database.handle(), uid, gid);
# 424| }
# 425| }
Error: COMPILER_WARNING (CWE-843): [#def2]
kf6-kservice-6.3.0-build/kservice-6.3.0/src/sycoca/kmemfile.cpp: scope_hint: In member function ‘virtual bool KMemFile::open(QIODeviceBase::OpenMode)’
kf6-kservice-6.3.0-build/kservice-6.3.0/src/sycoca/kmemfile.cpp:168:15: warning[-Wclass-memaccess]: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct KMemFile::Private::sharedInfoData’; use assignment or value-initialization instead
# 168 | memset(infoPtr, 0, sizeof(Private::sharedInfoData));
# | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kf6-kservice-6.3.0-build/kservice-6.3.0/src/sycoca/kmemfile.cpp:21:12: note: ‘struct KMemFile::Private::sharedInfoData’ declared here
# 21 | struct sharedInfoData {
# | ^~~~~~~~~~~~~~
# 166| // no -> create it
# 167| infoPtr = static_cast<Private::sharedInfoData *>(d->shmInfo.data());
# 168|-> memset(infoPtr, 0, sizeof(Private::sharedInfoData));
# 169| infoPtr->shmCounter = 1;
# 170| if (!d->loadContentsFromFile()) {
Error: CLANG_WARNING: [#def3]
kf6-kservice-6.3.0-build/kservice-6.3.0/src/sycoca/ksycocafactory.cpp:57:9: warning[deadcode.DeadStores]: Value stored to 'saveOffset' is never read
# 55| // Init index tables
# 56| d->m_sycocaDict = new KSycocaDict(str, d->m_sycocaDictOffset);
# 57|-> saveOffset = str->device()->seek(saveOffset);
# 58| } else {
# 59| // We are in kbuildsycoca -- build new database!
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-65.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | kf6-kservice-6.3.0-1.fc41 |
store-results-to | /tmp/tmp6ri4qtn8/kf6-kservice-6.3.0-1.fc41.tar.xz |
time-created | 2024-07-03 14:23:12 |
time-finished | 2024-07-03 14:25:14 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp6ri4qtn8/kf6-kservice-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp6ri4qtn8/kf6-kservice-6.3.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |