Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-465): [#def1]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c: scope_hint: In function '_gcry_mpi_mod_sec'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-internal.h:179:36: warning[-Wanalyzer-deref-before-check]: check of 'a' for NULL after already dereferencing it
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:359:26: note: in expansion of macro 'mpi_alloc_limb_space'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:359:26: note: in expansion of macro 'mpi_alloc_limb_space'
#  177|   
#  178|   /*-- mpiutil.c --*/
#  179|-> #define mpi_alloc_limb_space(n,f)  _gcry_mpi_alloc_limb_space((n),(f))
#  180|   mpi_ptr_t _gcry_mpi_alloc_limb_space( unsigned nlimbs, int sec );
#  181|   void _gcry_mpi_free_limb_space( mpi_ptr_t a, unsigned int nlimbs );

Error: GCC_ANALYZER_WARNING (CWE-465): [#def2]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:257:6: warning[-Wanalyzer-deref-before-check]: check of 'w' for NULL after already dereferencing it
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:233:17: note: in expansion of macro 'mpi_is_secure'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:233:17: note: in expansion of macro 'mpi_is_secure'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:237:17: note: in expansion of macro 'mpi_is_secure'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:237:17: note: in expansion of macro 'mpi_is_secure'
#  255|     /* Ensure W has space enough to store the result.  */
#  256|     wsize = usize + vsize;
#  257|->   if (!mpi_is_secure (w) && (mpi_is_secure (u) || mpi_is_secure (v)))
#  258|       {
#  259|         /* w is not allocated in secure space but u or v is.  To make sure

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-180.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namelibgcrypt-1.11.0-3.fc41
diffbase-store-results-to/tmp/tmpna3y71e9/libgcrypt-1.11.0-3.fc41.tar.xz
diffbase-time-created2024-11-13 01:20:22
diffbase-time-finished2024-11-13 01:23:57
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpna3y71e9/libgcrypt-1.11.0-3.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpna3y71e9/libgcrypt-1.11.0-3.fc41.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-180.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibgcrypt-1.11.0-4.fc42
store-results-to/tmp/tmp4p5dqqwr/libgcrypt-1.11.0-4.fc42.tar.xz
time-created2024-11-13 01:24:08
time-finished2024-11-13 01:27:19
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp4p5dqqwr/libgcrypt-1.11.0-4.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp4p5dqqwr/libgcrypt-1.11.0-4.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9