mpfr-4.2.1-4.fc41

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c: scope_hint: In function 'sin_bs_aux'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:375:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'accu[k]'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:24: included_from: Included from here.
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:591:3: note: in expansion of macro 'MPFR_ASSERTN'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:2315:2: note: in expansion of macro 'MPFR_GROUP_INIT_TEMPLATE'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:600:3: note: in expansion of macro 'MPFR_GROUP_INIT_2'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:2294:10: note: in expansion of macro 'MPFR_PREC2LIMBS'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:2315:2: note: in expansion of macro 'MPFR_GROUP_INIT_TEMPLATE'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:600:3: note: in expansion of macro 'MPFR_GROUP_INIT_2'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:518:30: note: in expansion of macro 'MPFR_ASSUME'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:475:3: note: in expansion of macro 'MPFR_ASSERTD'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:479:19: note: in expansion of macro 'MPFR_PREC'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:311:3: note: in expansion of macro 'mpz_init'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:518:30: note: in expansion of macro 'MPFR_ASSUME'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:1636:5: note: in expansion of macro 'MPFR_ASSERTD'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:328:3: note: in expansion of macro 'MPFR_MPZ_SIZEINBASE2'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:142: included_from: Included from here.
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:1639:5: note: in expansion of macro 'count_leading_zeros'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:328:3: note: in expansion of macro 'MPFR_MPZ_SIZEINBASE2'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:518:30: note: in expansion of macro 'MPFR_ASSUME'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:1636:5: note: in expansion of macro 'MPFR_ASSERTD'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:335:3: note: in expansion of macro 'MPFR_MPZ_SIZEINBASE2'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:1639:5: note: in expansion of macro 'count_leading_zeros'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:335:3: note: in expansion of macro 'MPFR_MPZ_SIZEINBASE2'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:518:30: note: in expansion of macro 'MPFR_ASSUME'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:1636:5: note: in expansion of macro 'MPFR_ASSERTD'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:336:3: note: in expansion of macro 'MPFR_MPZ_SIZEINBASE2'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:1639:5: note: in expansion of macro 'count_leading_zeros'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:336:3: note: in expansion of macro 'MPFR_MPZ_SIZEINBASE2'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:518:30: note: in expansion of macro 'MPFR_ASSUME'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:349:11: note: in expansion of macro 'MPFR_ASSERTD'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:518:30: note: in expansion of macro 'MPFR_ASSUME'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:349:11: note: in expansion of macro 'MPFR_ASSERTD'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:351:11: note: in expansion of macro 'MPFR_ASSERTN'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:518:30: note: in expansion of macro 'MPFR_ASSUME'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:1636:5: note: in expansion of macro 'MPFR_ASSERTD'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:356:11: note: in expansion of macro 'MPFR_MPZ_SIZEINBASE2'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:1639:5: note: in expansion of macro 'count_leading_zeros'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:356:11: note: in expansion of macro 'MPFR_MPZ_SIZEINBASE2'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:362:7: note: in expansion of macro 'MPFR_ASSERTN'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:518:30: note: in expansion of macro 'MPFR_ASSUME'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:1636:5: note: in expansion of macro 'MPFR_ASSERTD'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:372:7: note: in expansion of macro 'MPFR_MPZ_SIZEINBASE2'
mpfr-4.2.1-build/mpfr-4.2.1/src/mpfr-impl.h:1639:5: note: in expansion of macro 'count_leading_zeros'
mpfr-4.2.1-build/mpfr-4.2.1/src/sin_cos.c:372:7: note: in expansion of macro 'MPFR_MPZ_SIZEINBASE2'
#  373|         mult[k] += 2 * r - size_ptoj[1] - 1;
#  374|         /* the absolute contribution of the next term is 1/2^accu[k] */
#  375|->       accu[k] = (k == 0) ? mult[k] : mult[k] + accu[k-1];
#  376|         prec_i_have = accu[k]; /* the current term is < 1/2^accu[k] */
#  377|         j = (i + 2) / 2;

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-234.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namempfr-4.2.1-4.fc41
store-results-to/tmp/tmpowpsq2h7/mpfr-4.2.1-4.fc41.tar.xz
time-created2024-07-03 16:20:00
time-finished2024-07-03 16:22:42
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpowpsq2h7/mpfr-4.2.1-4.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpowpsq2h7/mpfr-4.2.1-4.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9