kf6-kwallet-6.3.0-1.fc41

List of Defects

Error: CLANG_WARNING: [#def1]
kf6-kwallet-6.3.0-build/kwallet-6.3.0/src/runtime/kwalletd/backend/cbc.cc:105:9: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
#  103|           }
#  104|   
#  105|->         return rc;
#  106|       }
#  107|       return -1;

Error: COMPILER_WARNING (CWE-457): [#def2]
kf6-kwallet-6.3.0-build/kwallet-6.3.0/src/runtime/kwalletd/backend/cbc.cc: scope_hint: In member function ‘CipherBlockChain::encrypt(void*, int)’
kf6-kwallet-6.3.0-build/kwallet-6.3.0/src/runtime/kwalletd/backend/cbc.cc:105:16: warning[-Wmaybe-uninitialized]: ‘rc’ may be used uninitialized
#  105 |         return rc;
#      |                ^~
kf6-kwallet-6.3.0-build/kwallet-6.3.0/src/runtime/kwalletd/backend/cbc.cc:77:13: note: ‘rc’ was declared here
#   77 |         int rc;
#      |             ^~
#  103|           }
#  104|   
#  105|->         return rc;
#  106|       }
#  107|       return -1;

Error: CLANG_WARNING: [#def3]
kf6-kwallet-6.3.0-build/kwallet-6.3.0/src/runtime/kwalletd/main.cpp:88:13: warning[unix.Malloc]: Potential memory leak
#   86|       int chop = 0;
#   87|       FILE *s3 = fdopen(dup(s2), "r");
#   88|->     while (!feof(s3)) {
#   89|           if (fgets(str, BSIZE, s3)) {
#   90|               chop = strlen(str) - 1;

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
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-254.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf6-kwallet-6.3.0-1.fc41
store-results-to/tmp/tmpm7i3qia3/kf6-kwallet-6.3.0-1.fc41.tar.xz
time-created2024-07-03 14:13:51
time-finished2024-07-03 14:16:24
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpm7i3qia3/kf6-kwallet-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpm7i3qia3/kf6-kwallet-6.3.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9