Fixed defects

List of Defects

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

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

Error: CLANG_WARNING: [#def3]
libtommath-1.2.1-build/libtommath-1.2.1/bn_mp_log_u32.c:101:32: warning[core.DivideZero]: Division by zero
#   99|         }
#  100|         bit_count = mp_count_bits(a) - 1;
#  101|->       *c = (uint32_t)(bit_count/y);
#  102|         return MP_OKAY;
#  103|      }

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-177.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namelibtommath-1.3.1~rc1-1.fc41
diffbase-store-results-to/tmp/tmpjcmlug5o/libtommath-1.3.1~rc1-1.fc41.tar.xz
diffbase-time-created2024-07-03 16:02:25
diffbase-time-finished2024-07-03 16:04:18
diffbase-toolcsmock
diffbase-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'
diffbase-tool-versioncsmock-3.5.3-1.el9
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.2.1-3.fc40
store-results-to/tmp/tmpdb37hws6/libtommath-1.2.1-3.fc40.tar.xz
time-created2024-07-03 15:59:20
time-finished2024-07-03 16:01:50
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpdb37hws6/libtommath-1.2.1-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpdb37hws6/libtommath-1.2.1-3.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9