Task #934 - fixed.err
back to task #934download
Error: CLANG_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/cryptohi/secvfy.c:522:17: warning[deadcode.DeadStores]: Value stored to 'rv' is never read # 520| if (sigLen == 0) { # 521| /* error set by checkedSignatureLen */ # 522|-> rv = SECFailure; # 523| goto loser; # 524| } Error: CLANG_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/cryptohi/secvfy.c:527:17: warning[deadcode.DeadStores]: Value stored to 'rv' is never read # 525| if (sigLen > sizeof(cx->u)) { # 526| PORT_SetError(SEC_ERROR_BAD_SIGNATURE); # 527|-> rv = SECFailure; # 528| goto loser; # 529| } Error: CLANG_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/cryptohi/secvfy.c:534:25: warning[deadcode.DeadStores]: Value stored to 'rv' is never read # 532| if (sig->len != sigLen) { # 533| PORT_SetError(SEC_ERROR_BAD_SIGNATURE); # 534|-> rv = SECFailure; # 535| goto loser; # 536| } Error: CLANG_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/cryptohi/secvfy.c:547:21: warning[deadcode.DeadStores]: Value stored to 'rv' is never read # 545| default: # 546| /* Unreachable */ # 547|-> rv = SECFailure; # 548| goto loser; # 549| } Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/deprecated/seed.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecl_gf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecl_mult.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_256.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_256_32.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_384.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_521.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_jac.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_jm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_secp384r1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_secp384r1_wrap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_secp521r1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-758): nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_secp521r1.c:11447: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour #11445| d = (rnaf[105] - 1) >> 1; #11446| for (j = 0; j < DRADIX / 2; j++) { #11447|-> diff = (1 - (-(d ^ j) >> (8 * sizeof(int) - 1))) & 1; #11448| fiat_secp521r1_selectznz(Q.X, diff, Q.X, precomp[j].X); #11449| fiat_secp521r1_selectznz(Q.Y, diff, Q.Y, precomp[j].Y); Error: CPPCHECK_WARNING (CWE-758): nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_secp521r1.c:11458: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour #11456| d = rnaf[i]; #11457| /* is_neg = (d < 0) ? 1 : 0 */ #11458|-> is_neg = (d >> (8 * sizeof(int) - 1)) & 1; #11459| /* d = abs(d) */ #11460| d = (d ^ -is_neg) + is_neg; Error: CPPCHECK_WARNING (CWE-758): nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_secp521r1.c:11463: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour #11461| d = (d - 1) >> 1; #11462| for (j = 0; j < DRADIX / 2; j++) { #11463|-> diff = (1 - (-(d ^ j) >> (8 * sizeof(int) - 1))) & 1; #11464| fiat_secp521r1_selectznz(lut.X, diff, lut.X, precomp[j].X); #11465| fiat_secp521r1_selectznz(lut.Y, diff, lut.Y, precomp[j].Y); Error: CPPCHECK_WARNING (CWE-758): nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_secp521r1.c:11525: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour #11523| d = rnaf[j * 9 + i]; #11524| /* is_neg = (d < 0) ? 1 : 0 */ #11525|-> is_neg = (d >> (8 * sizeof(int) - 1)) & 1; #11526| /* d = abs(d) */ #11527| d = (d ^ -is_neg) + is_neg; Error: CPPCHECK_WARNING (CWE-758): nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_secp521r1.c:11530: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour #11528| d = (d - 1) >> 1; #11529| for (k = 0; k < DRADIX / 2; k++) { #11530|-> diff = (1 - (-(d ^ k) >> (8 * sizeof(int) - 1))) & 1; #11531| fiat_secp521r1_selectznz(lut.X, diff, lut.X, lut_cmb[j][k].X); #11532| fiat_secp521r1_selectznz(lut.Y, diff, lut.Y, lut_cmb[j][k].Y); Error: CPPCHECK_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/freebl/ecl/ecp_secp521r1_wrap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/smime/cmsrecinfo.c:565:13: warning[deadcode.DeadStores]: Value stored to 'encalgtag' is never read # 563| break; # 564| case NSSCMSRecipientInfoID_KEK: # 565|-> encalgtag = SECOID_GetAlgorithmTag(&(ri->ri.kekRecipientInfo.keyEncAlg)); # 566| enckey = &(ri->ri.kekRecipientInfo.encKey); # 567| /* not supported yet */ Error: CLANG_WARNING: nss-3.98.0-build/nss-3.98/nss/lib/smime/cmsrecinfo.c:566:13: warning[deadcode.DeadStores]: Value stored to 'enckey' is never read # 564| case NSSCMSRecipientInfoID_KEK: # 565| encalgtag = SECOID_GetAlgorithmTag(&(ri->ri.kekRecipientInfo.keyEncAlg)); # 566|-> enckey = &(ri->ri.kekRecipientInfo.encKey); # 567| /* not supported yet */ # 568| error = SEC_ERROR_UNSUPPORTED_KEYALG;