Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-569): [#def1]
kio-extras-24.02.1-build/kio-extras-24.02.1/sftp/kio_sftp.cpp: scope_hint: In function ‘std::optional<std::filesystem::perms> {anonymous}::posixToOptionalPerms(uint32_t)’
kio-extras-24.02.1-build/kio-extras-24.02.1/sftp/kio_sftp.cpp:194:14: warning[-Wtype-limits]: comparison of unsigned expression in ‘< 0’ is always false
#  194 |     if (mode < 0) {
#      |         ~~~~~^~~
#  192|   inline std::optional<perms> posixToOptionalPerms(uint32_t mode) noexcept
#  193|   {
#  194|->     if (mode < 0) {
#  195|           return {};
#  196|       }

Error: COMPILER_WARNING (CWE-252): [#def2]
kio-extras-24.02.1-build/kio-extras-24.02.1/thumbnail/thumbnail.cpp: scope_hint: In function ‘int kdemain(int, char**)’
kio-extras-24.02.1-build/kio-extras-24.02.1/thumbnail/thumbnail.cpp:94:9: warning[-Wunused-result]: ignoring return value of ‘int nice(int)’ declared with attribute ‘warn_unused_result’
#   94 |     nice(5);
#      |     ~~~~^~~
#   92|       SetPriorityClass(GetCurrentProcess(), BELOW_NORMAL_PRIORITY_CLASS);
#   93|   #else
#   94|->     nice(5);
#   95|   #endif
#   96|   

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-81.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namekio-extras-24.05.0-1.fc41
diffbase-store-results-to/tmp/tmpabr9oai6/kio-extras-24.05.0-1.fc41.tar.xz
diffbase-time-created2024-07-03 14:24:59
diffbase-time-finished2024-07-03 14:30:47
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpabr9oai6/kio-extras-24.05.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpabr9oai6/kio-extras-24.05.0-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-81.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekio-extras-24.02.1-1.fc40
store-results-to/tmp/tmpj1z07y74/kio-extras-24.02.1-1.fc40.tar.xz
time-created2024-07-03 14:18:08
time-finished2024-07-03 14:24:33
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpj1z07y74/kio-extras-24.02.1-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpj1z07y74/kio-extras-24.02.1-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9