libgcrypt-1.11.0-4.fc42
List of Findings
Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/bin/libgcrypt-config:78:6: warning[SC2034]: optarg appears unused. Verify use (or export if used externally).
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bithelp.h:72:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'src'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:138:10: note: in expansion of macro 'le_bswap32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ccm.c: scope_hint: In function 'buf_cpy'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:228:7: note: in expansion of macro 'buf_put_he32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:138:10: note: in expansion of macro 'le_bswap32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:138:10: note: in expansion of macro 'le_bswap32'
Error: GCC_ANALYZER_WARNING (CWE-126): [#def3]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bithelp.h:72:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:138:10: note: in expansion of macro 'le_bswap32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c:39: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c:418:7: note: in expansion of macro 'gcry_assert'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c:418:7: note: in expansion of macro 'gcry_assert'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:250:25: note: in expansion of macro 'buf_get_he64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:259:25: note: in expansion of macro 'buf_get_he32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:138:10: note: in expansion of macro 'le_bswap32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:138:10: note: in expansion of macro 'le_bswap32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bithelp.h:72:25: note: read of 3 bytes from after the end of 'scratch'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:138:10: note: in expansion of macro 'le_bswap32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bithelp.h:72:25: note: valid subscripts for 'scratch' are '[0]' to '[8]'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:138:10: note: in expansion of macro 'le_bswap32'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bithelp.h:74:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'src'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ccm.c: scope_hint: In function 'buf_cpy'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:220:7: note: in expansion of macro 'buf_put_he64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
Error: GCC_ANALYZER_WARNING (CWE-126): [#def5]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bithelp.h:74:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c:418:7: note: in expansion of macro 'gcry_assert'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c:418:7: note: in expansion of macro 'gcry_assert'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:250:25: note: in expansion of macro 'buf_get_he64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:250:25: note: in expansion of macro 'buf_get_he64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bithelp.h:74:25: note: read of 7 bytes from after the end of 'scratch'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bithelp.h:74:25: note: valid subscripts for 'scratch' are '[0]' to '[8]'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
Error: GCC_ANALYZER_WARNING (CWE-121): [#def6]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:150:10: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c:418:7: note: in expansion of macro 'gcry_assert'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c:418:7: note: in expansion of macro 'gcry_assert'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:250:25: note: in expansion of macro 'buf_get_he64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:259:25: note: in expansion of macro 'buf_get_he32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:138:10: note: in expansion of macro 'le_bswap32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:259:7: note: in expansion of macro 'buf_put_he32'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:150:10: note: write of 3 bytes to beyond the end of 'scratch'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:150:10: note: valid subscripts for 'scratch' are '[0]' to '[8]'
Error: GCC_ANALYZER_WARNING (CWE-121): [#def7]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:180:10: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c:418:7: note: in expansion of macro 'gcry_assert'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c:418:7: note: in expansion of macro 'gcry_assert'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:250:25: note: in expansion of macro 'buf_get_he64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:250:25: note: in expansion of macro 'buf_get_he64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:10: note: in expansion of macro 'le_bswap64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h: scope_hint: In function 'buf_xor'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:250:7: note: in expansion of macro 'buf_put_he64'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:180:10: note: write of 7 bytes to beyond the end of 'scratch'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:180:10: note: valid subscripts for 'scratch' are '[0]' to '[8]'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h: scope_hint: In function 'buf_cpy'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:213:7: warning[-Wanalyzer-null-argument]: use of NULL '_src' where non-null expected
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ccm.c:26: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:211:11: note: in expansion of macro 'UNLIKELY'
<built-in>: note: argument 2 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:236:14: warning[-Wanalyzer-null-dereference]: dereference of NULL 'src'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def10]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/des.c: scope_hint: In function 'des_ecb_crypt'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/des.c:653:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*keys'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/des.c:1081:9: note: in expansion of macro 'des_ecb_encrypt'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-eddsa.c: scope_hint: In function 'reverse_buffer'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-eddsa.c:42:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'buffer'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-eddsa.c:31: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-eddsa.c:718:3: note: in expansion of macro 'point_init'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/visibility.h:36: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/g10lib.h:39: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-eddsa.c:26: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-eddsa.c:104:7: note: in expansion of macro 'mpi_test_bit'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-eddsa.c:28: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-eddsa.c:741:7: note: in expansion of macro 'DBG_CIPHER'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/gostr3411-94.c: scope_hint: In function 'do_p'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/gostr3411-94.c:86:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 't[2]'
Error: CPPCHECK_WARNING (CWE-758): [#def13]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mceliece6688128f.c:193: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def14]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mceliece6688128f.c:377: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def15]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mceliece6688128f.c:470: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def16]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mceliece6688128f.c:640: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-457): [#def17]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/md.c:550: warning[uninitvar]: Uninitialized variables: hd.ctx, hd.bufpos, hd.bufsize
Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/md.c: scope_hint: In function 'md_start_debug.part.0'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/md.c:1563:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&buf, "w")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/md.c:1563:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&buf, "w")'
Error: CPPCHECK_WARNING (CWE-457): [#def20]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/poly1305.c:838: warning[uninitvar]: Uninitialized variable: all_msg
Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/rfc2268.c: scope_hint: In function 'do_encrypt'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/rfc2268.c:108:59: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*(RFC2268_context *)context.S[j]'
Error: CPPCHECK_WARNING (CWE-758): [#def22]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:350: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def23]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:351: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def24]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:352: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def25]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:353: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def26]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:354: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def27]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:355: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def28]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:356: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def29]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:357: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def30]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:358: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def31]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:359: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def32]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:360: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def33]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:361: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def34]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:362: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def35]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:363: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def36]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:364: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def37]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:365: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def38]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:396: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def39]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:397: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def40]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:398: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def41]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:399: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def42]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:400: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def43]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:401: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def44]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:402: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def45]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:403: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def46]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:404: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def47]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:405: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def48]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:406: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def49]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:407: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def50]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:408: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def51]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:409: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def52]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:410: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def53]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:411: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: COMPILER_WARNING: [#def54]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/serpent-avx512-x86.c: scope_hint: In function 'ocb_input'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/serpent-avx512-x86.c:695:1: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c: scope_hint: In function '_gcry_mpi_set'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-internal.h:94:21: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:495:3: note: in expansion of macro 'MPN_COPY'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:492:3: note: in expansion of macro 'RESIZE_IF_NEEDED'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:492:3: note: in expansion of macro 'RESIZE_IF_NEEDED'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:495:3: note: in expansion of macro 'MPN_COPY'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:495:3: note: in expansion of macro 'MPN_COPY'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:495:3: note: in expansion of macro 'MPN_COPY'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:495:3: note: in expansion of macro 'MPN_COPY'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def56]
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'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def57]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:145:8: 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:123:19: note: in expansion of macro 'mpi_is_secure'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:123:19: note: in expansion of macro 'mpi_is_secure'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:127:19: note: in expansion of macro 'mpi_is_secure'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:127:19: note: in expansion of macro 'mpi_is_secure'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def58]
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'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c: scope_hint: In function '_gcry_mpi_neg'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:407:11: warning[-Wanalyzer-null-dereference]: dereference of NULL 'w'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/visibility.h:36: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/g10lib.h:39: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:27: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:400:5: note: in expansion of macro 'mpi_set'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:400:5: note: in expansion of macro 'mpi_set'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:28: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:492:3: note: in expansion of macro 'RESIZE_IF_NEEDED'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:492:3: note: in expansion of macro 'RESIZE_IF_NEEDED'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:495:3: note: in expansion of macro 'MPN_COPY'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:400:5: note: in expansion of macro 'mpi_set'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def60]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c: scope_hint: In function '_gcry_mpi_randomize'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:702:9: 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-internal.h:52: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:695:7: note: in expansion of macro 'mpi_is_immutable'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def61]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:708:9: warning[-Wanalyzer-deref-before-check]: check of 'w' for NULL after already dereferencing it
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpiutil.c:695:7: note: in expansion of macro 'mpi_is_immutable'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c:40: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c: scope_hint: In function 'secmem_dump_stats_internal'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/g10lib.h:205:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mb'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c:894:13: note: in expansion of macro 'log_info'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c: scope_hint: In function 'secmem_dump_stats_internal'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c:894:13: note: in expansion of macro 'log_info'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c:894:13: note: in expansion of macro 'log_info'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def63]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/hmac256.c: scope_hint: In function ‘transform’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/hmac256.c:143:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘w[<unknown>]’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/hmac256.c:211:12: note: in expansion of macro ‘S1’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/hmac256.c:143:22: note: in definition of macro ‘S1’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/hmac256.c:211:12: note: in expansion of macro ‘S1’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def64]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/mpi.h:115:36: warning[-Wanalyzer-deref-before-check]: check of 'u' for NULL after already dereferencing it
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:127:19: note: in expansion of macro 'mpi_is_secure'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:123:19: note: in expansion of macro 'mpi_is_secure'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:123:19: note: in expansion of macro 'mpi_is_secure'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:127:19: note: in expansion of macro 'mpi_is_secure'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def65]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-internal.h:52: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:30: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c: scope_hint: In function '_gcry_mpi_mul'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/mpi.h:115:36: warning[-Wanalyzer-deref-before-check]: check of 'v' for NULL after already dereferencing it
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:123:19: note: in expansion of macro 'mpi_is_secure'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c:123:19: note: in expansion of macro 'mpi_is_secure'
Error: CPPCHECK_WARNING (CWE-457): [#def66]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/mpicalc.c:80: error[uninitvar]: Uninitialized variable: buf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c:187:72: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mb_prev'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c: scope_hint: In function 'mb_get_prev'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c: scope_hint: In function 'mb_get_prev'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c: scope_hint: In function 'mb_get_new'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c:246:14: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mb'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c: scope_hint: In function 'mb_get_new'
Error: CPPCHECK_WARNING (CWE-457): [#def69]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/basic.c:17716: warning[uninitvar]: Uninitialized variable: pkey
Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c: scope_hint: In function ‘read_public_key_file’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:304:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, <unknown>)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c: scope_hint: In function ‘read_sexp_from_file’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:304:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:304:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, <unknown>)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:304:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-617): [#def74]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:531:5: warning[-Wanalyzer-tainted-assertion]: use of attacked-controlled value in condition for assertion
Error: GCC_ANALYZER_WARNING (CWE-617): [#def75]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c: scope_hint: In function ‘read_public_key_file’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:623:5: warning[-Wanalyzer-tainted-assertion]: use of attacked-controlled value in condition for assertion
Error: CPPCHECK_WARNING (CWE-457): [#def76]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:723: warning[uninitvar]: Uninitialized variable: s_sig
Error: GCC_ANALYZER_WARNING (CWE-617): [#def77]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c: scope_hint: In function ‘read_sexp_from_file’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:742:5: warning[-Wanalyzer-tainted-assertion]: use of attacked-controlled value in condition for assertion
Error: CPPCHECK_WARNING (CWE-457): [#def78]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:1147: error[legacyUninitvar]: Uninitialized variable: last_output
Error: CPPCHECK_WARNING (CWE-457): [#def79]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:1270: warning[uninitvar]: Uninitialized variable: s_keyspec
Error: CPPCHECK_WARNING (CWE-457): [#def80]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:1333: warning[uninitvar]: Uninitialized variable: s_keyspec
Error: CPPCHECK_WARNING (CWE-457): [#def81]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:2013: warning[uninitvar]: Uninitialized variable: s_data
Error: CPPCHECK_WARNING (CWE-457): [#def82]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:2108: warning[uninitvar]: Uninitialized variable: s_data
Error: CPPCHECK_WARNING (CWE-457): [#def83]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:2151: warning[uninitvar]: Uninitialized variable: s_data
Error: CPPCHECK_WARNING (CWE-457): [#def84]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:2227: warning[uninitvar]: Uninitialized variable: s_data
Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c: scope_hint: In function ‘main’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:96:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:35: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:46:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:46:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:50:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:50:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:52:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:52:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:54:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:54:3: note: in expansion of macro ‘xgcry_control’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:96:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:46:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:46:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:50:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:50:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:52:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:52:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:54:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c:54:3: note: in expansion of macro ‘xgcry_control’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def87]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c: scope_hint: In function ‘cmp_digest’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:395:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:35: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:629:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:629:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:634:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:635:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:635:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/gcrypt-int.h:27: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:30: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:652:14: note: in expansion of macro ‘gcry_md_test_algo’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:333:12: note: in expansion of macro ‘hexdigitp’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c:27: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 1 of ‘memcmp’ must be non-null
Error: CPPCHECK_WARNING (CWE-457): [#def88]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/keygen.c:89: error[uninitvar]: Uninitialized variable: buf
Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c: scope_hint: In function ‘check_forking’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:201:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rp[in_recursion]’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:38: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:764:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:764:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:781:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:781:3: note: in expansion of macro ‘xgcry_control’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c: scope_hint: In function ‘check_nonce_forking’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:268:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rp[in_recursion]’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:764:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:764:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:781:3: note: in expansion of macro ‘xgcry_control’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c:781:3: note: in expansion of macro ‘xgcry_control’
Error: CPPCHECK_WARNING (CWE-457): [#def91]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-convert.c:118: error[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def92]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-cv25519.c:51: error[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def93]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-mpi-point.c:161: error[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def94]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-x448.c:52: error[uninitvar]: Uninitialized variable: buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c: scope_hint: In function ‘my_spawn’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:105:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:540:7: note: in expansion of macro ‘xfree’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:540:7: note: in expansion of macro ‘xfree’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:540:7: note: in expansion of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c: scope_hint: In function ‘strtokenize’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:106:22: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(bytes)’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:320:10: note: in expansion of macro ‘spacep’
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:320:10: note: in expansion of macro ‘spacep’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:559:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:559:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 0), 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:559:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:573:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:573:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 0), 1)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c:573:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-180.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libgcrypt-1.11.0-4.fc42 |
store-results-to | /tmp/tmp4p5dqqwr/libgcrypt-1.11.0-4.fc42.tar.xz |
time-created | 2024-11-13 01:24:08 |
time-finished | 2024-11-13 01:27:19 |
tool | csmock |
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-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |