Fixed findings

List of Findings

Error: COMPILER_WARNING: [#def1]
nss-3.115.1/nss/cmd/rsaperf/rsaperf.c: scope_hint: In function ‘main’
nss-3.115.1/nss/cmd/rsaperf/rsaperf.c:346:9: warning[-Wunused-but-set-variable=]: variable ‘calcThreads’ set but not used
#  346 |     int calcThreads = 0;
#      |         ^~~~~~~~~~~
#  344|       ThreadRunData **runDataArr = NULL;
#  345|       PRThread **threadsArr = NULL;
#  346|->     int calcThreads = 0;
#  347|   
#  348|       progName = strrchr(argv[0], '/');

Error: COMPILER_WARNING (CWE-704): [#def2]
nss-3.115.1/nss/lib/freebl/lowhash_vector.c:65: included_from: Included from here.
nss-3.115.1/nss/lib/freebl/genload.c: scope_hint: In function ‘loader_LoadLibInReferenceDir’
nss-3.115.1/nss/lib/freebl/genload.c:92:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   92 |     c = strrchr(referencePath, PR_GetDirectorySeparator());
#      |       ^
#   90|   
#   91|       /* Remove the trailing filename from referencePath and add the new one */
#   92|->     c = strrchr(referencePath, PR_GetDirectorySeparator());
#   93|       if (c) {
#   94|           size_t referencePathSize = 1 + c - referencePath;

Error: COMPILER_WARNING (CWE-704): [#def3]
nss-3.115.1/nss/lib/freebl/genload.c:92:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   90|   
#   91|       /* Remove the trailing filename from referencePath and add the new one */
#   92|->     c = strrchr(referencePath, PR_GetDirectorySeparator());
#   93|       if (c) {
#   94|           size_t referencePathSize = 1 + c - referencePath;

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-201.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namenss-3.119.1-1.fc44
diffbase-store-results-to/tmp/tmp8dsx8yjj/nss-3.119.1-1.fc44.tar.xz
diffbase-time-created2026-01-08 19:43:29
diffbase-time-finished2026-01-08 19:51:27
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp8dsx8yjj/nss-3.119.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp8dsx8yjj/nss-3.119.1-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-201.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namenss-3.115.1-1.fc43
store-results-to/tmp/tmpkiqy2eg9/nss-3.115.1-1.fc43.tar.xz
time-created2026-01-08 19:34:35
time-finished2026-01-08 19:43:03
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpkiqy2eg9/nss-3.115.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpkiqy2eg9/nss-3.115.1-1.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9