Newly introduced defects

List of Defects

Error: CPPCHECK_WARNING: [#def1]
nss-3.101.0-build/nss-3.101/nss/gtests/pk11_gtest/pk11_eddsa_unittest.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2]
nss-3.101.0-build/nss-3.101/nss/lib/certdb/alg1485.c:666:5: warning[deadcode.DeadStores]: Value stored to 'reqLen' is never read
#  664|           return SECFailure;
#  665|       }
#  666|->     reqLen += 1;
#  667|   
#  668|       if (mode == minimalEscapeAndQuote)

Error: CLANG_WARNING: [#def3]
nss-3.101.0-build/nss-3.101/nss/lib/cryptohi/seckey.c:691:21: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
#  689|   
#  690|                   if (!SECITEM_AllocItem(arena, &pubk->u.ec.DEREncodedParams, oidEd25519->oid.len + 2)) {
#  691|->                     rv = SECFailure;
#  692|                       break;
#  693|                   }

Error: CLANG_WARNING: [#def4]
nss-3.101.0-build/nss-3.101/nss/lib/pkcs12/p12e.c:468:9: warning[core.NullDereference]: Access to field 'cinfo' results in a dereference of a null pointer (loaded from variable 'safeInfo')
#  466|           PK11_FreeSlot(slot);
#  467|       }
#  468|->     if (safeInfo->cinfo) {
#  469|           SEC_PKCS7DestroyContentInfo(safeInfo->cinfo);
#  470|       }

Error: CLANG_WARNING: [#def5]
nss-3.101.0-build/nss-3.101/nss/lib/smime/cmsrecinfo.c:588:13: warning[deadcode.DeadStores]: Value stored to 'algid' is never read
#  586|               break;
#  587|           case NSSCMSRecipientInfoID_KEK:
#  588|->             algid = &(ri->ri.kekRecipientInfo.keyEncAlg);
#  589|               parameters = &(ri->ri.kekRecipientInfo.keyEncAlg.parameters);
#  590|               enckey = &(ri->ri.kekRecipientInfo.encKey);

Error: CLANG_WARNING: [#def6]
nss-3.101.0-build/nss-3.101/nss/lib/smime/cmsrecinfo.c:589:13: warning[deadcode.DeadStores]: Value stored to 'parameters' is never read
#  587|           case NSSCMSRecipientInfoID_KEK:
#  588|               algid = &(ri->ri.kekRecipientInfo.keyEncAlg);
#  589|->             parameters = &(ri->ri.kekRecipientInfo.keyEncAlg.parameters);
#  590|               enckey = &(ri->ri.kekRecipientInfo.encKey);
#  591|               /* not supported yet */

Error: CPPCHECK_WARNING: [#def7]
nss-3.101.0-build/nss-3.101/nss/lib/util/secalgid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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-76.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namenss-3.98.0-1.fc40
diffbase-store-results-to/tmp/tmplydymh5w/nss-3.98.0-1.fc40.tar.xz
diffbase-time-created2024-07-03 16:20:04
diffbase-time-finished2024-07-03 17:03:31
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmplydymh5w/nss-3.98.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmplydymh5w/nss-3.98.0-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-76.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namenss-3.101.0-3.fc41
store-results-to/tmp/tmp2lxhkgo2/nss-3.101.0-3.fc41.tar.xz
time-created2024-07-03 17:03:58
time-finished2024-07-03 17:46:56
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp2lxhkgo2/nss-3.101.0-3.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp2lxhkgo2/nss-3.101.0-3.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9