kf6-kservice-6.8.0-1.fc42

List of Findings

Error: COMPILER_WARNING (CWE-252): [#def1]
kf6-kservice-6.8.0-build/kservice-6.8.0/src/sycoca/kbuildsycoca.cpp: scope_hint: In member function ‘bool KBuildSycoca::recreate(bool)’
kf6-kservice-6.8.0-build/kservice-6.8.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.8.0-build/kservice-6.8.0/src/sycoca/kmemfile.cpp: scope_hint: In member function ‘virtual bool KMemFile::open(QIODeviceBase::OpenMode)’
kf6-kservice-6.8.0-build/kservice-6.8.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.8.0-build/kservice-6.8.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()) {

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-254.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namekf6-kservice-6.8.0-1.fc42
store-results-to/tmp/tmpkw9712lt/kf6-kservice-6.8.0-1.fc42.tar.xz
time-created2024-11-13 01:00:26
time-finished2024-11-13 01:02:21
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpkw9712lt/kf6-kservice-6.8.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpkw9712lt/kf6-kservice-6.8.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9