libtommath-1.3.1~rc1-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_and.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_div_2d.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_div_d.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_exptmod.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_fread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_is_square.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_montgomery_reduce.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_mul.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_mul_2d.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_or.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_pack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_prime_is_prime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_prime_next_prime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_prime_rand.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def15]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_prime_rand.c: scope_hint: In function 's_mp_prime_random_ex'
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_prime_rand.c:74:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*tmp'
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_prime_rand.c:1: included_from: Included from here.
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_prime_rand.c:45:28: note: in expansion of macro 'MP_MALLOC'
#   72|   
#   73|         /* work over the MSbyte */
#   74|->       tmp[0]    &= maskAND;
#   75|         tmp[0]    |= (unsigned char)(1 << ((size - 1) & 7));
#   76|   

Error: CLANG_WARNING: [#def16]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_prime_rand.c:74:17: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
#   72|   
#   73|         /* work over the MSbyte */
#   74|->       tmp[0]    &= maskAND;
#   75|         tmp[0]    |= (unsigned char)(1 << ((size - 1) & 7));
#   76|   

Error: CPPCHECK_WARNING: [#def17]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_radix_size.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_rand.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_read_radix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_reduce_is_2k.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_to_radix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_mp_xor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_balance_mul.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_div_3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_exptmod.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_exptmod_fast.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def27]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_log_2expt.c:10:34: warning[core.DivideZero]: Division by zero
#    8|      int y;
#    9|      for (y = 0; (base & 1) == 0; y++, base >>= 1) {}
#   10|->    return (mp_count_bits(a) - 1) / y;
#   11|   }
#   12|   #endif

Error: CPPCHECK_WARNING: [#def28]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_log_d.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_montgomery_reduce_fast.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def30]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_montgomery_reduce_fast.c:69:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
#   67|          */
#   68|         mp_digit mu;
#   69|->       mu = ((W[ix] & MP_MASK) * rho) & MP_MASK;
#   70|   
#   71|         /* a = a + mu * m * b**i

Error: CLANG_WARNING: [#def31]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_montgomery_reduce_fast.c:98:19: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
#   96|            /* inner loop */
#   97|            for (iy = 0; iy < n->used; iy++) {
#   98|->             *_W++ += (mp_word)mu * (mp_word)*tmpn++;
#   99|            }
#  100|         }

Error: CLANG_WARNING: [#def32]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_montgomery_reduce_fast.c:123:16: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
#  121|   
#  122|         for (; ix < ((n->used * 2) + 1); ix++) {
#  123|->          *_W++ += *_W1++ >> (mp_word)MP_DIGIT_BIT;
#  124|         }
#  125|   

Error: CLANG_WARNING: [#def33]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_montgomery_reduce_fast.c:123:26: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>>' is a garbage value
#  121|   
#  122|         for (; ix < ((n->used * 2) + 1); ix++) {
#  123|->          *_W++ += *_W1++ >> (mp_word)MP_DIGIT_BIT;
#  124|         }
#  125|   

Error: CPPCHECK_WARNING: [#def34]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_mul_digs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_mul_digs_fast.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_mul_high_digs_fast.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def37]
libtommath-1.3.1_rc1-build/libtommath-1.3.1-rc1/bn_s_mp_sqr_fast.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
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-177.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibtommath-1.3.1~rc1-1.fc41
store-results-to/tmp/tmpjcmlug5o/libtommath-1.3.1~rc1-1.fc41.tar.xz
time-created2024-07-03 16:02:25
time-finished2024-07-03 16:04:18
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpjcmlug5o/libtommath-1.3.1~rc1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpjcmlug5o/libtommath-1.3.1~rc1-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9