Error: COMPILER_WARNING (CWE-252): [#def1] kf6-kio-6.8.0-build/kio-6.8.0/src/kioworkers/file/file.cpp: scope_hint: In member function ‘KIO::WorkerResult FileProtocol::unmount(const QString&)’ kf6-kio-6.8.0-build/kio-6.8.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): [#def2] kf6-kio-6.8.0-build/kio-6.8.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.8.0-build/kio-6.8.0/src/kioworkers/file/file_unix.cpp:848:26: warning[-Wunused-result]: ignoring return value of ‘int chown(const char*, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’ # 848 | (void)::chown(_dest.data(), buffSrc.st_uid, -1 /*keep group*/); # | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 846| // as we are the owner of the new file, we can always change the group, but # 847| // we might not be allowed to change the owner # 848|-> (void)::chown(_dest.data(), buffSrc.st_uid, -1 /*keep group*/); # 849| } else { # 850| if (!tryChangeFileAttr(CHOWN, {_dest, buffSrc.st_uid, buffSrc.st_gid}, errno).success()) { Error: COMPILER_WARNING (CWE-252): [#def3] kf6-kio-6.8.0-build/kio-6.8.0/src/kioworkers/file/kauth/filehelper.cpp: scope_hint: In function ‘void gainPrivilege(Privilege*)’ kf6-kio-6.8.0-build/kio-6.8.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: COMPILER_WARNING (CWE-252): [#def4] kf6-kio-6.8.0-build/kio-6.8.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: COMPILER_WARNING (CWE-477): [#def5] kf6-kio-6.8.0-build/kio-6.8.0/src/kioworkers/help/main.cpp: scope_hint: In function ‘int kdemain(int, char**)’ kf6-kio-6.8.0-build/kio-6.8.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.8.0-build/kio-6.8.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): [#def6] kf6-kio-6.8.0-build/kio-6.8.0/src/kioworkers/help/main_ghelp.cpp: scope_hint: In function ‘int kdemain(int, char**)’ kf6-kio-6.8.0-build/kio-6.8.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.8.0-build/kio-6.8.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();
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-121.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | kf6-kio-6.8.0-1.fc42 |
store-results-to | /tmp/tmpabuz_a0g/kf6-kio-6.8.0-1.fc42.tar.xz |
time-created | 2024-11-13 00:58:12 |
time-finished | 2024-11-13 01:04:33 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpabuz_a0g/kf6-kio-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/tmpabuz_a0g/kf6-kio-6.8.0-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |