Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:2636:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3673:1: enter_function: entry to ‘PKIX_BuildChain’
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3681:35: release_memory: ‘state’ is NULL
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3686:9: branch_false: following ‘false’ branch...
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3691:12: branch_true: following ‘true’ branch...
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3692:17: branch_true: ...to here
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3692:17: call_function: calling ‘pkix_Build_InitiateBuildChain’ from ‘PKIX_BuildChain’
# 2634|                           PKIX_DECREF(childTraversedSubjNames);
# 2635|                           PKIX_DECREF(certSelParams);
# 2636|->                         childState->verifyNode = verifyNode;
# 2637|                           verifyNode = NULL;
# 2638|                           PKIX_DECREF(state);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3022:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘state’
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3673:1: enter_function: entry to ‘PKIX_BuildChain’
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3681:35: release_memory: ‘state’ is NULL
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3686:9: branch_false: following ‘false’ branch...
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3691:12: branch_true: following ‘true’ branch...
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3692:17: branch_true: ...to here
nss-3.109/nss/lib/libpkix/pkix/top/pkix_build.c:3692:17: call_function: calling ‘pkix_Build_InitiateBuildChain’ from ‘PKIX_BuildChain’
# 3020|                      PKIX_BUILDVALIDATIONCHECKERSFAILED);
# 3021|   
# 3022|->         PKIX_CHECK_ONLY_FATAL(
# 3023|               pkix_Build_ValidateEntireChain(state, matchingAnchor,
# 3024|                                              &nbioContext, &valResult,

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-160.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.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namenss-3.110.0-2.fc43
diffbase-store-results-to/tmp/tmpaiiohfen/nss-3.110.0-2.fc43.tar.xz
diffbase-time-created2025-04-25 14:40:27
diffbase-time-finished2025-04-25 14:48:23
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpaiiohfen/nss-3.110.0-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpaiiohfen/nss-3.110.0-2.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-160.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namenss-3.109.0-1.fc42
store-results-to/tmp/tmpqwe96txg/nss-3.109.0-1.fc42.tar.xz
time-created2025-04-25 14:31:32
time-finished2025-04-25 14:40:00
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpqwe96txg/nss-3.109.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqwe96txg/nss-3.109.0-1.fc42.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9