libgcrypt-1.11.0-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/arcfour.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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'
#   70|   # define be_bswap64(x) ((u64)(x))
#   71|   #else
#   72|-> # define le_bswap32(x) ((u32)(x))
#   73|   # define be_bswap32(x) _gcry_bswap32(x)
#   74|   # define le_bswap64(x) ((u64)(x))

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'
#                                  └──────────────────────────────────────┘
#                                         ^                      ^
#   70|   # define be_bswap64(x) ((u64)(x))
#   71|   #else
#   72|-> # define le_bswap32(x) ((u32)(x))
#   73|   # define be_bswap32(x) _gcry_bswap32(x)
#   74|   # define le_bswap64(x) ((u64)(x))

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'
#   72|   # define le_bswap32(x) ((u32)(x))
#   73|   # define be_bswap32(x) _gcry_bswap32(x)
#   74|-> # define le_bswap64(x) ((u64)(x))
#   75|   # define be_bswap64(x) _gcry_bswap64(x)
#   76|   #endif

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'
#                                └────────────────────────────────────────┘
#                                       ^                       ^
#   72|   # define le_bswap32(x) ((u32)(x))
#   73|   # define be_bswap32(x) _gcry_bswap32(x)
#   74|-> # define le_bswap64(x) ((u64)(x))
#   75|   # define be_bswap64(x) _gcry_bswap64(x)
#   76|   #endif

Error: CPPCHECK_WARNING: [#def6]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/blake2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/blowfish.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def8]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpicoder.c:29: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:133:21: warning[core.NullDereference]: Access to field 'a' results in a dereference of a null pointer (loaded from variable '_buf')
#  131|   static inline u32 buf_get_be32(const void *_buf)
#  132|   {
#  133|->   return be_bswap32(((const bufhelp_u32_t *)_buf)->a);
#  134|   }
#  135|   

Error: GCC_ANALYZER_WARNING (CWE-121): [#def9]
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]'
#  148|   {
#  149|     bufhelp_u32_t *out = _buf;
#  150|->   out->a = le_bswap32(val);
#  151|   }
#  152|   

Error: CLANG_WARNING: [#def10]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpicoder.c:29: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:163:21: warning[core.NullDereference]: Access to field 'a' results in a dereference of a null pointer (loaded from variable '_buf')
#  161|   static inline u64 buf_get_be64(const void *_buf)
#  162|   {
#  163|->   return be_bswap64(((const bufhelp_u64_t *)_buf)->a);
#  164|   }
#  165|   

Error: CLANG_WARNING: [#def11]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/blake2.c:29: included_from: Included from here.
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:168:3: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
#  166|   static inline u64 buf_get_le64(const void *_buf)
#  167|   {
#  168|->   return le_bswap64(((const bufhelp_u64_t *)_buf)->a);
#  169|   }
#  170|   

Error: GCC_ANALYZER_WARNING (CWE-121): [#def12]
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]'
#  178|   {
#  179|     bufhelp_u64_t *out = _buf;
#  180|->   out->a = le_bswap64(val);
#  181|   }
#  182|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def13]
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
#  211|         if (UNLIKELY(len == 0))
#  212|   	return;
#  213|->       memcpy(_dst, _src, len);
#  214|         return;
#  215|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/bufhelp.h:236:14: warning[-Wanalyzer-null-dereference]: dereference of NULL 'src'
#  234|     /* Handle tail.  */
#  235|     for (; len; len--)
#  236|->     *dst++ = *src++;
#  237|   }
#  238|   

Error: CPPCHECK_WARNING: [#def15]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/camellia-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cast5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/chacha20.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def18]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/chacha20.c:1075:4: warning[deadcode.DeadStores]: Value stored to 'authoffset' is never read
# 1073|   	  _gcry_poly1305_update (&c->u_mode.poly1305.ctx, authptr, authoffset);
# 1074|   	  authptr += authoffset;
# 1075|-> 	  authoffset = 0;
# 1076|   	}
# 1077|   

Error: CPPCHECK_WARNING: [#def19]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-aeswrap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cbc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def21]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cbc.c:123:3: warning[deadcode.DeadStores]: Value stored to 'burn' is never read
#  121|       return GPG_ERR_INV_LENGTH;
#  122|   
#  123|->   burn = 0;
#  124|   
#  125|     if (inbuflen > blocksize)

Error: CLANG_WARNING: [#def22]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cbc.c:249:3: warning[deadcode.DeadStores]: Value stored to 'burn' is never read
#  247|       return GPG_ERR_INV_LENGTH;
#  248|   
#  249|->   burn = 0;
#  250|   
#  251|     if (inbuflen > blocksize)

Error: CPPCHECK_WARNING: [#def23]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ccm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cfb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def25]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cfb.c:119:7: warning[deadcode.DeadStores]: Value stored to 'outbuf' is never read
#  117|         c->unused -= inbuflen;
#  118|         buf_xor_2dst(outbuf, c->u_iv.iv, inbuf, inbuflen);
#  119|->       outbuf += inbuflen;
#  120|         inbuf += inbuflen;
#  121|         inbuflen = 0;

Error: CLANG_WARNING: [#def26]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cfb.c:120:7: warning[deadcode.DeadStores]: Value stored to 'inbuf' is never read
#  118|         buf_xor_2dst(outbuf, c->u_iv.iv, inbuf, inbuflen);
#  119|         outbuf += inbuflen;
#  120|->       inbuf += inbuflen;
#  121|         inbuflen = 0;
#  122|       }

Error: CLANG_WARNING: [#def27]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cfb.c:121:7: warning[deadcode.DeadStores]: Value stored to 'inbuflen' is never read
#  119|         outbuf += inbuflen;
#  120|         inbuf += inbuflen;
#  121|->       inbuflen = 0;
#  122|       }
#  123|   

Error: CLANG_WARNING: [#def28]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cfb.c:218:7: warning[deadcode.DeadStores]: Value stored to 'outbuf' is never read
#  216|         c->unused -= inbuflen;
#  217|         buf_xor_n_copy(outbuf, c->u_iv.iv, inbuf, inbuflen);
#  218|->       outbuf += inbuflen;
#  219|         inbuf += inbuflen;
#  220|         inbuflen = 0;

Error: CLANG_WARNING: [#def29]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cfb.c:219:7: warning[deadcode.DeadStores]: Value stored to 'inbuf' is never read
#  217|         buf_xor_n_copy(outbuf, c->u_iv.iv, inbuf, inbuflen);
#  218|         outbuf += inbuflen;
#  219|->       inbuf += inbuflen;
#  220|         inbuflen = 0;
#  221|       }

Error: CLANG_WARNING: [#def30]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cfb.c:220:7: warning[deadcode.DeadStores]: Value stored to 'inbuflen' is never read
#  218|         outbuf += inbuflen;
#  219|         inbuf += inbuflen;
#  220|->       inbuflen = 0;
#  221|       }
#  222|   

Error: CPPCHECK_WARNING: [#def31]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cmac.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def32]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cmac.c:62:7: warning[deadcode.DeadStores]: Value stored to 'inbuf' is never read
#   60|         buf_cpy (&ctx->macbuf[ctx->mac_unused], inbuf, inlen);
#   61|         ctx->mac_unused += inlen;
#   62|->       inbuf += inlen;
#   63|         inlen -= inlen;
#   64|   

Error: CLANG_WARNING: [#def33]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cmac.c:115:3: warning[deadcode.DeadStores]: Value stored to 'inbuf' is never read
#  113|     buf_cpy (&ctx->macbuf[ctx->mac_unused], inbuf, n);
#  114|     ctx->mac_unused += n;
#  115|->   inbuf += n;
#  116|     inlen -= n;
#  117|   

Error: CLANG_WARNING: [#def34]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-cmac.c:116:3: warning[deadcode.DeadStores]: Value stored to 'inlen' is never read
#  114|     ctx->mac_unused += n;
#  115|     inbuf += n;
#  116|->   inlen -= n;
#  117|   
#  118|     if (burn)

Error: CPPCHECK_WARNING: [#def35]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ctr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def36]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ctr.c:104:11: warning[deadcode.DeadStores]: Value stored to 'inbuflen' is never read
#  102|             buf_xor(outbuf, inbuf, tmp, inbuflen);
#  103|   
#  104|->           inbuflen -= n;
#  105|             outbuf += n;
#  106|             inbuf += n;

Error: CLANG_WARNING: [#def37]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ctr.c:105:11: warning[deadcode.DeadStores]: Value stored to 'outbuf' is never read
#  103|   
#  104|             inbuflen -= n;
#  105|->           outbuf += n;
#  106|             inbuf += n;
#  107|           }

Error: CLANG_WARNING: [#def38]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ctr.c:106:11: warning[deadcode.DeadStores]: Value stored to 'inbuf' is never read
#  104|             inbuflen -= n;
#  105|             outbuf += n;
#  106|->           inbuf += n;
#  107|           }
#  108|   

Error: CPPCHECK_WARNING: [#def39]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-eax.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-gcm-siv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def41]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-gcm-siv.c:236:7: warning[deadcode.DeadStores]: Value stored to 'outbuf' is never read
#  234|         buf_xor(outbuf, inbuf, tmp, inbuflen);
#  235|   
#  236|->       outbuf += inbuflen;
#  237|         inbuf += inbuflen;
#  238|         inbuflen -= inbuflen;

Error: CLANG_WARNING: [#def42]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-gcm-siv.c:237:7: warning[deadcode.DeadStores]: Value stored to 'inbuf' is never read
#  235|   
#  236|         outbuf += inbuflen;
#  237|->       inbuf += inbuflen;
#  238|         inbuflen -= inbuflen;
#  239|       }

Error: CLANG_WARNING: [#def43]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-gcm-siv.c:587:40: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
#  585|     cipher_block_xor (expected_tag, c->u_iv.iv, c->u_mode.gcm.u_tag.tag,
#  586|   		    GCRY_SIV_BLOCK_LEN);
#  587|->   expected_tag[GCRY_SIV_BLOCK_LEN - 1] &= 0x7f;
#  588|     c->spec->encrypt (&c->context.c, expected_tag, expected_tag);
#  589|   

Error: CPPCHECK_WARNING: [#def44]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-gcm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def45]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ocb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def46]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ocb.c:397:7: warning[deadcode.DeadStores]: Value stored to 'abuf' is never read
#  395|   	       abuf, n);
#  396|         c->u_mode.ocb.aad_nleftover += n;
#  397|->       abuf += n;
#  398|         abuflen -= n;
#  399|       }

Error: CPPCHECK_WARNING: [#def47]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ofb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def48]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ofb.c:99:7: warning[deadcode.DeadStores]: Value stored to 'outbuf' is never read
#   97|         c->unused -= inbuflen;
#   98|         buf_xor(outbuf, c->u_iv.iv, inbuf, inbuflen);
#   99|->       outbuf += inbuflen;
#  100|         inbuf += inbuflen;
#  101|         inbuflen = 0;

Error: CLANG_WARNING: [#def49]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ofb.c:100:7: warning[deadcode.DeadStores]: Value stored to 'inbuf' is never read
#   98|         buf_xor(outbuf, c->u_iv.iv, inbuf, inbuflen);
#   99|         outbuf += inbuflen;
#  100|->       inbuf += inbuflen;
#  101|         inbuflen = 0;
#  102|       }

Error: CLANG_WARNING: [#def50]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-ofb.c:101:7: warning[deadcode.DeadStores]: Value stored to 'inbuflen' is never read
#   99|         outbuf += inbuflen;
#  100|         inbuf += inbuflen;
#  101|->       inbuflen = 0;
#  102|       }
#  103|   

Error: CPPCHECK_WARNING: [#def51]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-poly1305.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-siv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher-xts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/cipher.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def55]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/crc-intel-pclmul.c:310:7: warning[deadcode.DeadStores]: Value stored to 'inbuf' is never read
#  308|   		    );
#  309|   
#  310|->       inbuf += inlen;
#  311|         inlen -= inlen;
#  312|       }

Error: CLANG_WARNING: [#def56]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/crc-intel-pclmul.c:672:7: warning[deadcode.DeadStores]: Value stored to 'inbuf' is never read
#  670|   		    );
#  671|   
#  672|->       inbuf += inlen;
#  673|         inlen -= inlen;
#  674|       }

Error: CPPCHECK_WARNING: [#def57]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/des.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def58]
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:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*&ctx_430(D)->encrypt_subkeys'
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/des.c:1081:9: note: in expansion of macro 'des_ecb_encrypt'
#  651|     u32 *keys;
#  652|   
#  653|->   keys = mode ? ctx->decrypt_subkeys : ctx->encrypt_subkeys;
#  654|   
#  655|     READ_64BIT_DATA (from, left, right)

Error: CLANG_WARNING: [#def59]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/des.c:658:3: warning[core.UndefinedBinaryOperatorResult]: The right operand of '^' is a garbage value
#  656|     INITIAL_PERMUTATION (left, work, right)
#  657|   
#  658|->   DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys)
#  659|     DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys)
#  660|     DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys)

Error: CPPCHECK_WARNING: [#def60]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/dsa-common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def61]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/dsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def62]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/dsa.c:984:11: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#  982|                 p = stpcpy (p, ")");
#  983|               }
#  984|->           p = stpcpy (p, ")");
#  985|   
#  986|             /* Allocate space for the list of factors plus one for the

Error: CPPCHECK_WARNING: [#def63]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-curves.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-ecdh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-ecdsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-eddsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
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'
#   40|     for (i=0; i < length/2; i++)
#   41|       {
#   42|->       tmp = buffer[i];
#   43|         buffer[i] = buffer[length-1-i];
#   44|         buffer[length-1-i] = tmp;

Error: CLANG_WARNING: [#def68]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-eddsa.c:1063:12: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 1061|     if (rc)
# 1062|       goto leave;
# 1063|->   if (tlen != rlen || memcmp (tbuf, rbuf, tlen))
# 1064|       {
# 1065|         rc = GPG_ERR_BAD_SIGNATURE;

Error: CPPCHECK_WARNING: [#def69]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-gost.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def70]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def71]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-misc.c:78:15: warning[deadcode.DeadStores]: Value stored to 'str' during its initialization is never read
#   76|   _gcry_ecc_model2str (enum gcry_mpi_ec_models model)
#   77|   {
#   78|->   const char *str = "?";
#   79|     switch (model)
#   80|       {

Error: CLANG_WARNING: [#def72]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc-misc.c:95:15: warning[deadcode.DeadStores]: Value stored to 'str' during its initialization is never read
#   93|   _gcry_ecc_dialect2str (enum ecc_dialects dialect)
#   94|   {
#   95|->   const char *str = "?";
#   96|     switch (dialect)
#   97|       {

Error: CPPCHECK_WARNING: [#def73]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/ecc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def74]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/elgamal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def75]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/elgamal.c:753:7: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#  751|             arg_list[nfac] = factors + nfac;
#  752|           }
#  753|->       p = stpcpy (p, "))");
#  754|         rc = sexp_build_array (&misc_info, NULL, buffer, arg_list);
#  755|         xfree (arg_list);

Error: CPPCHECK_WARNING: [#def76]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/gost-s-box.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def77]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/gost28147.c:442:42: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  440|   
#  441|     for (; buflen; buflen--)
#  442|->     h->u.imit.lastiv[h->u.imit.unused++] = *buf++;
#  443|   
#  444|     _gcry_burn_stack (burn);

Error: CPPCHECK_WARNING: [#def78]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/gostr3411-94.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def79]
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]'
#   84|     k = 0;
#   85|     p[k+0] = ((t[0] >> (8*k)) & 0xff) << 0 |
#   86|->            ((t[2] >> (8*k)) & 0xff) << 8 |
#   87|              ((t[4] >> (8*k)) & 0xff) << 16 |
#   88|              ((t[6] >> (8*k)) & 0xff) << 24;

Error: CPPCHECK_WARNING (CWE-758): [#def80]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/gostr3411-94.c:143: error[overlappingWriteFunction]: Overlapping read/write in memcpy() is undefined behavior
#  141|     int i;
#  142|     memcpy (t, u, 16);
#  143|->   memcpy (u, u + 4, 16);
#  144|     for (i = 0; i < 2; i++)
#  145|       {

Error: CPPCHECK_WARNING: [#def81]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/hash-common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def82]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/idea.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def83]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/kdf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def84]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/keccak.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def85]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/kem-ecc.c:229:3: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#  227|     p += ecc_len;
#  228|     memcpy (p, pubkey, ecc_len);
#  229|->   p += ecc_len;
#  230|   
#  231|     err = _gcry_kdf_open (&hd, GCRY_KDF_HKDF, macalgo, param, 1,

Error: CPPCHECK_WARNING: [#def86]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/kem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def87]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/kyber.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def88]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mac-cmac.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def89]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mac-hmac.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def90]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mac-poly1305.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def91]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mac-poly1305.c:69:7: warning[deadcode.DeadStores]: Value stored to 'cipher_algo' is never read
#   67|       case GCRY_MAC_POLY1305:
#   68|         /* plain Poly1305. */
#   69|->       cipher_algo = -1;
#   70|         return 0;
#   71|       case GCRY_MAC_POLY1305_AES:

Error: CPPCHECK_WARNING: [#def92]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mac.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def93]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mceliece6688128f.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def94]
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
#  191|   static crypto_int64 crypto_int64_negative_mask(crypto_int64 crypto_int64_x)
#  192|   {
#  193|->   return crypto_int64_x >> (64-1);
#  194|   }
#  195|   

Error: CPPCHECK_WARNING (CWE-758): [#def95]
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
#  375|   static crypto_int32 crypto_int32_negative_mask(crypto_int32 crypto_int32_x)
#  376|   {
#  377|->   return crypto_int32_x >> (32-1);
#  378|   }
#  379|   

Error: CPPCHECK_WARNING (CWE-758): [#def96]
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
#  468|   static crypto_uint64_signed crypto_uint64_signed_negative_mask(crypto_uint64_signed crypto_uint64_signed_x)
#  469|   {
#  470|->   return crypto_uint64_signed_x >> (64-1);
#  471|   }
#  472|   

Error: CPPCHECK_WARNING (CWE-758): [#def97]
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
#  638|   static crypto_uint32_signed crypto_uint32_signed_negative_mask(crypto_uint32_signed crypto_uint32_signed_x)
#  639|   {
#  640|->   return crypto_uint32_signed_x >> (32-1);
#  641|   }
#  642|   

Error: CLANG_WARNING: [#def98]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mceliece6688128f.c:1887:18: warning[core.BitwiseShift]: Left shift overflows the capacity of 'int'
# 1885|   {
# 1886|     int i, j;
# 1887|->   int stride = 1 << s;
# 1888|     int index = 0;
# 1889|     int16_t d, m;

Error: CLANG_WARNING: [#def99]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/mceliece6688128f.c:1895:20: warning[core.UndefinedBinaryOperatorResult]: The right operand of '^' is a garbage value due to array index out of bounds
# 1893|       for (j = 0; j < stride; j++)
# 1894|       {
# 1895|->       d = p[ i+j ] ^ p[ i+j+stride ];
# 1896|         m = (cb[ index >> 3 ] >> (index & 7)) & 1;
# 1897|         m = -m;

Error: CPPCHECK_WARNING: [#def100]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/md.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def101]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/md.c:550: warning[uninitvar]: Uninitialized variables: hd.ctx, hd.bufpos, hd.bufsize
#  548|       rc = md_open (&hd, algo, flags);
#  549|   
#  550|->   *h = rc? NULL : hd;
#  551|     return rc;
#  552|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
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")'
# 1561|     snprintf (buf, DIM(buf)-1, "dbgmd-%05d.%.10s", idx, suffix );
# 1562|     md->ctx->debug = fopen(buf, "w");
# 1563|->   if ( !md->ctx->debug )
# 1564|       log_debug("md debug: can't open %s\n", buf );
# 1565|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/md.c:1563:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&buf, "w")'
# 1561|     snprintf (buf, DIM(buf)-1, "dbgmd-%05d.%.10s", idx, suffix );
# 1562|     md->ctx->debug = fopen(buf, "w");
# 1563|->   if ( !md->ctx->debug )
# 1564|       log_debug("md debug: can't open %s\n", buf );
# 1565|   }

Error: CPPCHECK_WARNING: [#def104]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/poly1305.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def105]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/poly1305.c:838: warning[uninitvar]: Uninitialized variable: all_msg
#  836|         for (j = 0; j < i; j++)
#  837|   	all_msg[j] = i;
#  838|->       poly1305_auth (mac, all_msg, i, all_key);
#  839|         _gcry_poly1305_update (&total_ctx, mac, 16);
#  840|       }

Error: CPPCHECK_WARNING: [#def106]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/primegen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def107]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/primegen.c:482:11: warning[deadcode.DeadStores]: Value stored to 'is_locked' is never read
#  480|             if (is_locked && (err = gpgrt_lock_unlock (&primepool_lock)))
#  481|               goto leave;
#  482|->           is_locked = 0;
#  483|           }
#  484|         else

Error: CLANG_WARNING: [#def108]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/primegen.c:515:11: warning[deadcode.DeadStores]: Value stored to 'is_locked' is never read
#  513|             if (is_locked && (err = gpgrt_lock_unlock (&primepool_lock)))
#  514|               goto leave;
#  515|->           is_locked = 0;
#  516|   
#  517|             if (i == n)

Error: CLANG_WARNING: [#def109]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/primegen.c:691:7: warning[deadcode.DeadStores]: Value stored to 'is_locked' is never read
#  689|         if (is_locked)
#  690|           err = gpgrt_lock_unlock (&primepool_lock);
#  691|->       is_locked = 0;
#  692|         xfree (pool);
#  693|       }

Error: CPPCHECK_WARNING: [#def110]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/pubkey-util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def111]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/pubkey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def112]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/rfc2268.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def113]
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]'
#  106|         j = i * 4;
#  107|         /* For some reason I cannot combine those steps. */
#  108|->       word0 += (word1 & ~word3) + (word2 & word3) + ctx->S[j];
#  109|         word0 = rotl16(word0, 1);
#  110|   

Error: CPPCHECK_WARNING: [#def114]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/rijndael.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def115]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/rsa-common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def116]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/rsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def117]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/rsa.c:500:13: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  498|           }
#  499|         for (idx=0; tbl[idx].name; idx++)
#  500|->         if (!*tbl[idx].value)
#  501|             break;
#  502|         if (tbl[idx].name)

Error: CLANG_WARNING: [#def118]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/rsa.c:506:13: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  504|             /* At least one parameter is missing.  */
#  505|             for (idx=0; tbl[idx].name; idx++)
#  506|->             _gcry_mpi_release (*tbl[idx].value);
#  507|             return GPG_ERR_MISSING_VALUE;
#  508|           }

Error: CPPCHECK_WARNING: [#def119]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/salsa20.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def120]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/scrypt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def121]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def122]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:350: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  348|     x4 = GETU32 (inbuf+12);
#  349|   
#  350|->   OP (x1, x2, x3, x4, 0);
#  351|     OP (x3, x4, x1, x2, 2);
#  352|     OP (x1, x2, x3, x4, 4);

Error: CPPCHECK_WARNING (CWE-758): [#def123]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:351: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  349|   
#  350|     OP (x1, x2, x3, x4, 0);
#  351|->   OP (x3, x4, x1, x2, 2);
#  352|     OP (x1, x2, x3, x4, 4);
#  353|     OP (x3, x4, x1, x2, 6);

Error: CPPCHECK_WARNING (CWE-758): [#def124]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:352: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  350|     OP (x1, x2, x3, x4, 0);
#  351|     OP (x3, x4, x1, x2, 2);
#  352|->   OP (x1, x2, x3, x4, 4);
#  353|     OP (x3, x4, x1, x2, 6);
#  354|     OP (x1, x2, x3, x4, 8);

Error: CPPCHECK_WARNING (CWE-758): [#def125]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:353: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  351|     OP (x3, x4, x1, x2, 2);
#  352|     OP (x1, x2, x3, x4, 4);
#  353|->   OP (x3, x4, x1, x2, 6);
#  354|     OP (x1, x2, x3, x4, 8);
#  355|     OP (x3, x4, x1, x2, 10);

Error: CPPCHECK_WARNING (CWE-758): [#def126]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:354: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  352|     OP (x1, x2, x3, x4, 4);
#  353|     OP (x3, x4, x1, x2, 6);
#  354|->   OP (x1, x2, x3, x4, 8);
#  355|     OP (x3, x4, x1, x2, 10);
#  356|     OP (x1, x2, x3, x4, 12);

Error: CPPCHECK_WARNING (CWE-758): [#def127]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:355: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  353|     OP (x3, x4, x1, x2, 6);
#  354|     OP (x1, x2, x3, x4, 8);
#  355|->   OP (x3, x4, x1, x2, 10);
#  356|     OP (x1, x2, x3, x4, 12);
#  357|     OP (x3, x4, x1, x2, 14);

Error: CPPCHECK_WARNING (CWE-758): [#def128]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:356: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  354|     OP (x1, x2, x3, x4, 8);
#  355|     OP (x3, x4, x1, x2, 10);
#  356|->   OP (x1, x2, x3, x4, 12);
#  357|     OP (x3, x4, x1, x2, 14);
#  358|     OP (x1, x2, x3, x4, 16);

Error: CPPCHECK_WARNING (CWE-758): [#def129]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:357: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  355|     OP (x3, x4, x1, x2, 10);
#  356|     OP (x1, x2, x3, x4, 12);
#  357|->   OP (x3, x4, x1, x2, 14);
#  358|     OP (x1, x2, x3, x4, 16);
#  359|     OP (x3, x4, x1, x2, 18);

Error: CPPCHECK_WARNING (CWE-758): [#def130]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:358: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  356|     OP (x1, x2, x3, x4, 12);
#  357|     OP (x3, x4, x1, x2, 14);
#  358|->   OP (x1, x2, x3, x4, 16);
#  359|     OP (x3, x4, x1, x2, 18);
#  360|     OP (x1, x2, x3, x4, 20);

Error: CPPCHECK_WARNING (CWE-758): [#def131]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:359: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  357|     OP (x3, x4, x1, x2, 14);
#  358|     OP (x1, x2, x3, x4, 16);
#  359|->   OP (x3, x4, x1, x2, 18);
#  360|     OP (x1, x2, x3, x4, 20);
#  361|     OP (x3, x4, x1, x2, 22);

Error: CPPCHECK_WARNING (CWE-758): [#def132]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:360: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  358|     OP (x1, x2, x3, x4, 16);
#  359|     OP (x3, x4, x1, x2, 18);
#  360|->   OP (x1, x2, x3, x4, 20);
#  361|     OP (x3, x4, x1, x2, 22);
#  362|     OP (x1, x2, x3, x4, 24);

Error: CPPCHECK_WARNING (CWE-758): [#def133]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:361: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  359|     OP (x3, x4, x1, x2, 18);
#  360|     OP (x1, x2, x3, x4, 20);
#  361|->   OP (x3, x4, x1, x2, 22);
#  362|     OP (x1, x2, x3, x4, 24);
#  363|     OP (x3, x4, x1, x2, 26);

Error: CPPCHECK_WARNING (CWE-758): [#def134]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:362: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  360|     OP (x1, x2, x3, x4, 20);
#  361|     OP (x3, x4, x1, x2, 22);
#  362|->   OP (x1, x2, x3, x4, 24);
#  363|     OP (x3, x4, x1, x2, 26);
#  364|     OP (x1, x2, x3, x4, 28);

Error: CPPCHECK_WARNING (CWE-758): [#def135]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:363: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  361|     OP (x3, x4, x1, x2, 22);
#  362|     OP (x1, x2, x3, x4, 24);
#  363|->   OP (x3, x4, x1, x2, 26);
#  364|     OP (x1, x2, x3, x4, 28);
#  365|     OP (x3, x4, x1, x2, 30);

Error: CPPCHECK_WARNING (CWE-758): [#def136]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:364: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  362|     OP (x1, x2, x3, x4, 24);
#  363|     OP (x3, x4, x1, x2, 26);
#  364|->   OP (x1, x2, x3, x4, 28);
#  365|     OP (x3, x4, x1, x2, 30);
#  366|   

Error: CPPCHECK_WARNING (CWE-758): [#def137]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:365: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  363|     OP (x3, x4, x1, x2, 26);
#  364|     OP (x1, x2, x3, x4, 28);
#  365|->   OP (x3, x4, x1, x2, 30);
#  366|   
#  367|     PUTU32 (outbuf, x3);

Error: CPPCHECK_WARNING (CWE-758): [#def138]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:396: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  394|     x4 = GETU32 (inbuf+12);
#  395|   
#  396|->   OP (x1, x2, x3, x4, 30);
#  397|     OP (x3, x4, x1, x2, 28);
#  398|     OP (x1, x2, x3, x4, 26);

Error: CPPCHECK_WARNING (CWE-758): [#def139]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:397: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  395|   
#  396|     OP (x1, x2, x3, x4, 30);
#  397|->   OP (x3, x4, x1, x2, 28);
#  398|     OP (x1, x2, x3, x4, 26);
#  399|     OP (x3, x4, x1, x2, 24);

Error: CPPCHECK_WARNING (CWE-758): [#def140]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:398: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  396|     OP (x1, x2, x3, x4, 30);
#  397|     OP (x3, x4, x1, x2, 28);
#  398|->   OP (x1, x2, x3, x4, 26);
#  399|     OP (x3, x4, x1, x2, 24);
#  400|     OP (x1, x2, x3, x4, 22);

Error: CPPCHECK_WARNING (CWE-758): [#def141]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:399: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  397|     OP (x3, x4, x1, x2, 28);
#  398|     OP (x1, x2, x3, x4, 26);
#  399|->   OP (x3, x4, x1, x2, 24);
#  400|     OP (x1, x2, x3, x4, 22);
#  401|     OP (x3, x4, x1, x2, 20);

Error: CPPCHECK_WARNING (CWE-758): [#def142]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:400: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  398|     OP (x1, x2, x3, x4, 26);
#  399|     OP (x3, x4, x1, x2, 24);
#  400|->   OP (x1, x2, x3, x4, 22);
#  401|     OP (x3, x4, x1, x2, 20);
#  402|     OP (x1, x2, x3, x4, 18);

Error: CPPCHECK_WARNING (CWE-758): [#def143]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:401: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  399|     OP (x3, x4, x1, x2, 24);
#  400|     OP (x1, x2, x3, x4, 22);
#  401|->   OP (x3, x4, x1, x2, 20);
#  402|     OP (x1, x2, x3, x4, 18);
#  403|     OP (x3, x4, x1, x2, 16);

Error: CPPCHECK_WARNING (CWE-758): [#def144]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:402: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  400|     OP (x1, x2, x3, x4, 22);
#  401|     OP (x3, x4, x1, x2, 20);
#  402|->   OP (x1, x2, x3, x4, 18);
#  403|     OP (x3, x4, x1, x2, 16);
#  404|     OP (x1, x2, x3, x4, 14);

Error: CPPCHECK_WARNING (CWE-758): [#def145]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:403: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  401|     OP (x3, x4, x1, x2, 20);
#  402|     OP (x1, x2, x3, x4, 18);
#  403|->   OP (x3, x4, x1, x2, 16);
#  404|     OP (x1, x2, x3, x4, 14);
#  405|     OP (x3, x4, x1, x2, 12);

Error: CPPCHECK_WARNING (CWE-758): [#def146]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:404: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  402|     OP (x1, x2, x3, x4, 18);
#  403|     OP (x3, x4, x1, x2, 16);
#  404|->   OP (x1, x2, x3, x4, 14);
#  405|     OP (x3, x4, x1, x2, 12);
#  406|     OP (x1, x2, x3, x4, 10);

Error: CPPCHECK_WARNING (CWE-758): [#def147]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:405: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  403|     OP (x3, x4, x1, x2, 16);
#  404|     OP (x1, x2, x3, x4, 14);
#  405|->   OP (x3, x4, x1, x2, 12);
#  406|     OP (x1, x2, x3, x4, 10);
#  407|     OP (x3, x4, x1, x2, 8);

Error: CPPCHECK_WARNING (CWE-758): [#def148]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:406: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  404|     OP (x1, x2, x3, x4, 14);
#  405|     OP (x3, x4, x1, x2, 12);
#  406|->   OP (x1, x2, x3, x4, 10);
#  407|     OP (x3, x4, x1, x2, 8);
#  408|     OP (x1, x2, x3, x4, 6);

Error: CPPCHECK_WARNING (CWE-758): [#def149]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:407: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  405|     OP (x3, x4, x1, x2, 12);
#  406|     OP (x1, x2, x3, x4, 10);
#  407|->   OP (x3, x4, x1, x2, 8);
#  408|     OP (x1, x2, x3, x4, 6);
#  409|     OP (x3, x4, x1, x2, 4);

Error: CPPCHECK_WARNING (CWE-758): [#def150]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:408: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  406|     OP (x1, x2, x3, x4, 10);
#  407|     OP (x3, x4, x1, x2, 8);
#  408|->   OP (x1, x2, x3, x4, 6);
#  409|     OP (x3, x4, x1, x2, 4);
#  410|     OP (x1, x2, x3, x4, 2);

Error: CPPCHECK_WARNING (CWE-758): [#def151]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:409: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  407|     OP (x3, x4, x1, x2, 8);
#  408|     OP (x1, x2, x3, x4, 6);
#  409|->   OP (x3, x4, x1, x2, 4);
#  410|     OP (x1, x2, x3, x4, 2);
#  411|     OP (x3, x4, x1, x2, 0);

Error: CPPCHECK_WARNING (CWE-758): [#def152]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:410: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  408|     OP (x1, x2, x3, x4, 6);
#  409|     OP (x3, x4, x1, x2, 4);
#  410|->   OP (x1, x2, x3, x4, 2);
#  411|     OP (x3, x4, x1, x2, 0);
#  412|   

Error: CPPCHECK_WARNING (CWE-758): [#def153]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/seed.c:411: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  409|     OP (x3, x4, x1, x2, 4);
#  410|     OP (x1, x2, x3, x4, 2);
#  411|->   OP (x3, x4, x1, x2, 0);
#  412|   
#  413|     PUTU32 (outbuf, x3);

Error: COMPILER_WARNING: [#def154]
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
#  693|   ocb_input(__m512i *vchecksum, __m128i *voffset, const unsigned char *input,
#  694|   	  unsigned char *output, const ocb_L_uintptr_t L[4])
#  695|-> {
#  696|     __m128i L0 = _mm_loadu_si128((const void *)(uintptr_t)L[0]);
#  697|     __m128i L1 = _mm_loadu_si128((const void *)(uintptr_t)L[1]);

Error: CPPCHECK_WARNING: [#def155]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/serpent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def156]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/sha1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def157]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/sha256.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def158]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/sntrup761.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def159]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/stribog.c:1298:3: warning[deadcode.DeadStores]: Value stored to 'i' is never read
# 1296|     if (i < 64)
# 1297|       memset (&hd->bctx.buf[i], 0, 64 - i);
# 1298|->   i = 64;
# 1299|     transform_bits (hd, hd->bctx.buf, hd->bctx.count * 8);
# 1300|   

Error: CPPCHECK_WARNING: [#def160]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/twofish.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def161]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/cipher/whirlpool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def162]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/doc/yat2m.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def163]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/ec-nist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def164]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/ec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def165]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/ec.c:531:3: warning[deadcode.DeadStores]: Value stored to 'cy' is never read
#  529|   
#  530|     cy = _gcry_mpih_add_n (b0, b0, a2, LIMB_SIZE_HALF_448);
#  531|->   cy += _gcry_mpih_add_n (wp, b0, a3, LIMB_SIZE_HALF_448);
#  532|   #if (LIMB_SIZE_HALF_448 > LIMB_SIZE_448/2)
#  533|     cy = wp[LIMB_SIZE_HALF_448-1] >> 32;

Error: CLANG_WARNING: [#def166]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/ec.c:542:3: warning[deadcode.DeadStores]: Value stored to 'cy' is never read
#  540|     cy += _gcry_mpih_lshift (a3, a3, LIMB_SIZE_HALF_448, 1);
#  541|     cy += _gcry_mpih_add_n (b1, b1, a2, LIMB_SIZE_HALF_448);
#  542|->   cy += _gcry_mpih_add_n (b1, b1, a3, LIMB_SIZE_HALF_448);
#  543|   #if (LIMB_SIZE_HALF_448 > LIMB_SIZE_448/2)
#  544|     cy = _gcry_mpih_rshift (b1, b1, LIMB_SIZE_HALF_448, 32);

Error: CLANG_WARNING: [#def167]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/ec.c:609:3: warning[deadcode.DeadStores]: Value stored to 'cy' is never read
#  607|   #endif
#  608|     wp[wsize] = _gcry_mpih_addmul_1 (wp, n, wsize, 977);
#  609|->   cy = _gcry_mpih_add_n (wp, wp, s, wsize + 1);
#  610|   
#  611|     /* second pass of reduction */

Error: CPPCHECK_WARNING: [#def168]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-add.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def169]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-bit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def170]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-cmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def171]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-div.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
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'
#   92|   	mpi_size_t _i;			\
#   93|   	for( _i = 0; _i < (n); _i++ )	\
#   94|-> 	    (d)[_i] = (s)[_i];		\
#   95|       } while(0)
#   96|   

Error: CPPCHECK_WARNING: [#def173]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-inv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def174]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mod.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def175]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mpow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def176]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-mul.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-465): [#def177]
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'
#  143|       /* Ensure W has space enough to store the result.  */
#  144|       wsize = usize + vsize;
#  145|->     if ( !mpi_is_secure (w) && (mpi_is_secure (u) || mpi_is_secure (v)) ) {
#  146|           /* w is not allocated in secure space but u or v is.  To make sure
#  147|            * that no temporray results are stored in w, we temporary use

Error: CPPCHECK_WARNING: [#def178]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpi-pow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def179]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpicoder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def180]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpicoder.c:59:11: warning[core.NullDereference]: Array access (from variable 'buffer') results in a null pointer dereference
#   57|     if ( max_nread < 2 )
#   58|       goto leave;
#   59|->   nbits = buffer[0] << 8 | buffer[1];
#   60|     if ( nbits > MAX_EXTERN_MPI_BITS )
#   61|       {

Error: CLANG_WARNING: [#def181]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpicoder.c:457:7: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#  455|         n = n > BYTES_PER_MPI_LIMB ? BYTES_PER_MPI_LIMB : n;
#  456|         memcpy (last + BYTES_PER_MPI_LIMB - n, p - n + 1, n);
#  457|->       p -= n;
#  458|   
#  459|   #if BYTES_PER_MPI_LIMB == 4

Error: CLANG_WARNING: [#def182]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpicoder.c:515:29: warning[core.BitwiseShift]: Left shift by '32' overflows the capacity of 'int'
#  513|         unsigned int ntz = _gcry_ctz (pi);
#  514|   
#  515|->       p[i] = ((p[i] ^ (0xfe << ntz)) | (0x01 << ntz)) & (0xff << ntz);
#  516|   
#  517|         for (i--; i >= 7; i -= 8)

Error: CLANG_WARNING: [#def183]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpicoder.c:569:24: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 's')
#  567|           {
#  568|             _gcry_mpi_set_buffer (a, s, len, 0);
#  569|->           a->sign = !!(*s & 0x80);
#  570|             if (a->sign)
#  571|               {

Error: CLANG_WARNING: [#def184]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpicoder.c:675:14: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  673|           return GPG_ERR_INV_ARG;
#  674|   
#  675|->       slen = strlen ((const char *)buffer);
#  676|         if (slen > MAX_EXTERN_SCAN_BYTES)
#  677|   	return GPG_ERR_INV_OBJ;

Error: CPPCHECK_WARNING: [#def185]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpih-div.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def186]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/mpi/mpih-mul.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
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'
#  405|       }
#  406|   
#  407|->   w->sign = !u->sign;
#  408|   }
#  409|   

Error: GCC_ANALYZER_WARNING (CWE-465): [#def188]
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'
#  700|     if (level == GCRY_WEAK_RANDOM)
#  701|       {
#  702|->       p = mpi_is_secure(w) ? xmalloc_secure (nbytes)
#  703|                              : xmalloc (nbytes);
#  704|         _gcry_create_nonce (p, nbytes);

Error: GCC_ANALYZER_WARNING (CWE-465): [#def189]
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'
#  706|     else
#  707|       {
#  708|->       p = mpi_is_secure(w) ? _gcry_random_bytes_secure (nbytes, level)
#  709|                              : _gcry_random_bytes (nbytes, level);
#  710|       }

Error: CPPCHECK_WARNING: [#def190]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/random/random-csprng.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def191]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/random/random-drbg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def192]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/random/random-drbg.c:669:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  667|         for (cnt = 0; cnt < drbg_blocklen (drbg); cnt++)
#  668|   	{
#  669|-> 	  out[cnt] ^= *pos;
#  670|   	  pos++;
#  671|   	  inpos--;

Error: CLANG_WARNING: [#def193]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/random/random-drbg.c:787:42: warning[core.DivideZero]: Division by zero
#  785|   
#  786|     /* 10.4.2 step 5: length is size of L_N, input_string, one byte, padding */
#  787|->   padlen = (inputlen + sizeof (L_N) + 1) % (drbg_blocklen (drbg));
#  788|     /* wrap the padlen appropriately */
#  789|     if (padlen)

Error: CLANG_WARNING: [#def194]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/random/random-drbg.c:2386:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 2384|       return GPG_ERR_ENOMEM;
# 2385|   
# 2386|->   ret = _gcry_rngdrbg_cavs_test (test, buf);
# 2387|     /* FIXME: The next line is wrong.   */
# 2388|     ret = memcmp (test->expected, buf, test->expectedlen);

Error: CPPCHECK_WARNING: [#def195]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/random/random.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def196]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/random/rndgetentropy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def197]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/dumpsexp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def198]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/fips.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def199]
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'
#  203|   #define log_fatal   _gcry_log_fatal
#  204|   #define log_error   _gcry_log_error
#  205|-> #define log_info    _gcry_log_info
#  206|   #define log_debug   _gcry_log_debug
#  207|   #define log_printf  _gcry_log_printf

Error: CPPCHECK_WARNING: [#def200]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/global.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def201]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/hmac256.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def202]
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’
#  141|   #define Sum1(x) (ror ((x), 6) ^ ror ((x), 11) ^ ror ((x), 25))  /* (4.5) */
#  142|   #define S0(x) (ror ((x), 7) ^ ror ((x), 18) ^ ((x) >> 3))       /* (4.6) */
#  143|-> #define S1(x) (ror ((x), 17) ^ ror ((x), 19) ^ ((x) >> 10))     /* (4.7) */
#  144|   #define R(a,b,c,d,e,f,g,h,k,w) do                                 \
#  145|             {                                                       \

Error: CPPCHECK_WARNING: [#def203]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/hwf-x86.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def204]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/hwfeatures.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def205]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-465): [#def206]
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'
#  113|   #define mpi_is_immutable(a)   ((a)->flags&16)
#  114|   #define mpi_is_opaque(a)      ((a) && ((a)->flags&4))
#  115|-> #define mpi_is_secure(a)      ((a) && ((a)->flags&1))
#  116|   #define mpi_clear(a)          _gcry_mpi_clear ((a))
#  117|   #define mpi_alloc_like(a)     _gcry_mpi_alloc_like((a))

Error: GCC_ANALYZER_WARNING (CWE-465): [#def207]
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'
#  113|   #define mpi_is_immutable(a)   ((a)->flags&16)
#  114|   #define mpi_is_opaque(a)      ((a) && ((a)->flags&4))
#  115|-> #define mpi_is_secure(a)      ((a) && ((a)->flags&1))
#  116|   #define mpi_clear(a)          _gcry_mpi_clear ((a))
#  117|   #define mpi_alloc_like(a)     _gcry_mpi_alloc_like((a))

Error: CPPCHECK_WARNING: [#def208]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/mpicalc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def209]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/mpicalc.c:80: error[uninitvar]: Uninitialized variable: buf
#   78|     else
#   79|       {
#   80|->       fputs (buf, stdout);
#   81|         gcry_free (buf);
#   82|       }

Error: CPPCHECK_WARNING: [#def210]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def211]
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'
#  185|     memblock_t *mb_next;
#  186|   
#  187|->   mb_next = (memblock_t *) (void *) ((char *) mb + BLOCK_HEAD_SIZE + mb->size);
#  188|   
#  189|     if (! ptr_into_pool_p (pool, mb_next))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def212]
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'
#  244|   
#  245|     for (mb = block; ptr_into_pool_p (pool, mb); mb = mb_get_next (pool, mb))
#  246|->     if (! (mb->flags & MB_FLAG_ACTIVE) && mb->size >= size)
#  247|         {
#  248|   	/* Found a free block.  */

Error: CLANG_WARNING: [#def213]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c:246:22: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
#  244|   
#  245|     for (mb = block; ptr_into_pool_p (pool, mb); mb = mb_get_next (pool, mb))
#  246|->     if (! (mb->flags & MB_FLAG_ACTIVE) && mb->size >= size)
#  247|         {
#  248|   	/* Found a free block.  */

Error: CLANG_WARNING: [#def214]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/secmem.c:676:11: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
#  674|         if (mb)
#  675|           {
#  676|->           stats_update (pool, mb->size, 0);
#  677|             return &mb->aligned.c;
#  678|           }

Error: CPPCHECK_WARNING: [#def215]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def216]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2465:19: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 2463|                 if (mode == '&')
# 2464|                   {
# 2465|->                   gcry_buffer_t *spec = (gcry_buffer_t*)array[idx];
# 2466|                     if (!spec->data)
# 2467|                       {

Error: CLANG_WARNING: [#def217]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2475:31: warning[core.NullDereference]: Dereference of undefined pointer value
# 2473|                 else if (mode == 's')
# 2474|                   {
# 2475|->                   *array[idx] = NULL;
# 2476|                     arrayisdesc[idx] = 's';
# 2477|                   }

Error: CLANG_WARNING: [#def218]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2481:41: warning[core.NullDereference]: Dereference of undefined pointer value
# 2479|                   {
# 2480|                     if (submode == 'l')
# 2481|->                     *(long *)array[idx] = 0;
# 2482|                     else
# 2483|                       *(int *)array[idx] = 0;

Error: CLANG_WARNING: [#def219]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2489:50: warning[core.NullDereference]: Dereference of undefined pointer value
# 2487|                   {
# 2488|                     if (submode == 'l')
# 2489|->                     *(unsigned long *)array[idx] = 0;
# 2490|                     else if (submode == 'z')
# 2491|                       *(size_t *)array[idx] = 0;

Error: CLANG_WARNING: [#def220]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2491:43: warning[core.NullDereference]: Dereference of undefined pointer value
# 2489|                       *(unsigned long *)array[idx] = 0;
# 2490|                     else if (submode == 'z')
# 2491|->                     *(size_t *)array[idx] = 0;
# 2492|                     else
# 2493|                       *(unsigned int *)array[idx] = 0;

Error: CLANG_WARNING: [#def221]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2497:29: warning[core.NullDereference]: Dereference of undefined pointer value
# 2495|                   }
# 2496|                 else
# 2497|->                 *array[idx] = NULL;
# 2498|               }
# 2499|             else if (!l1)

Error: CLANG_WARNING: [#def222]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2508:19: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 2506|                 if (mode == '&')
# 2507|                   {
# 2508|->                   gcry_buffer_t *spec = (gcry_buffer_t*)array[idx];
# 2509|   
# 2510|                     if (spec->data)

Error: CLANG_WARNING: [#def223]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2562:39: warning[core.NullDereference]: Dereference of undefined pointer value
# 2560|                         if (!needed)
# 2561|                           {
# 2562|->                           *array[idx] = p = xtrymalloc (1);
# 2563|                             if (p)
# 2564|                               *p = 0;

Error: CLANG_WARNING: [#def224]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2566:45: warning[core.NullDereference]: Dereference of undefined pointer value
# 2564|                               *p = 0;
# 2565|                           }
# 2566|->                       else if ((*array[idx] = p = xtrymalloc (needed)))
# 2567|                           {
# 2568|                             for (i = 1; i < l1len; i++)

Error: CLANG_WARNING: [#def225]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2604:41: warning[core.NullDereference]: Dereference of undefined pointer value
# 2602|                     along = strtol (tmpstr, NULL, 10);
# 2603|                     if (submode == 'l')
# 2604|->                     *(long *)array[idx] = along;
# 2605|                     else
# 2606|                       *(int *)array[idx] = along;

Error: CLANG_WARNING: [#def226]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2622:50: warning[core.NullDereference]: Dereference of undefined pointer value
# 2620|                     aulong = strtoul (tmpstr, NULL, 10);
# 2621|                     if (submode == 'l')
# 2622|->                     *(unsigned long *)array[idx] = aulong;
# 2623|                     else if (submode == 'z')
# 2624|                       *(size_t *)array[idx] = aulong;

Error: CLANG_WARNING: [#def227]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2624:43: warning[core.NullDereference]: Dereference of undefined pointer value
# 2622|                       *(unsigned long *)array[idx] = aulong;
# 2623|                     else if (submode == 'z')
# 2624|->                     *(size_t *)array[idx] = aulong;
# 2625|                     else
# 2626|                       *(unsigned int *)array[idx] = aulong;

Error: CLANG_WARNING: [#def228]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2632:33: warning[core.NullDereference]: Dereference of undefined pointer value
# 2630|                   {
# 2631|                     if (mode == '/')
# 2632|->                     *array[idx] = _gcry_sexp_nth_mpi (l1,1,GCRYMPI_FMT_OPAQUE);
# 2633|                     else if (mode == '-')
# 2634|                       *array[idx] = _gcry_sexp_nth_mpi (l1,1,GCRYMPI_FMT_STD);

Error: CLANG_WARNING: [#def229]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2634:33: warning[core.NullDereference]: Dereference of undefined pointer value
# 2632|                       *array[idx] = _gcry_sexp_nth_mpi (l1,1,GCRYMPI_FMT_OPAQUE);
# 2633|                     else if (mode == '-')
# 2634|->                     *array[idx] = _gcry_sexp_nth_mpi (l1,1,GCRYMPI_FMT_STD);
# 2635|                     else
# 2636|                       *array[idx] = _gcry_sexp_nth_mpi (l1,1,GCRYMPI_FMT_USG);

Error: CLANG_WARNING: [#def230]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/src/sexp.c:2636:33: warning[core.NullDereference]: Dereference of undefined pointer value
# 2634|                       *array[idx] = _gcry_sexp_nth_mpi (l1,1,GCRYMPI_FMT_STD);
# 2635|                     else
# 2636|->                     *array[idx] = _gcry_sexp_nth_mpi (l1,1,GCRYMPI_FMT_USG);
# 2637|                     if (!*array[idx])
# 2638|                       {

Error: CPPCHECK_WARNING: [#def231]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/aeswrap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def232]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/basic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def233]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/basic.c:17716: warning[uninitvar]: Uninitialized variable: pkey
#17714|       die ("converting sample key failed: %s\n", gpg_strerror (err));
#17715|   
#17716|->   do_check_one_pubkey (n, skey, pkey,
#17717|                          (const unsigned char*)spec.key.grip,
#17718|   		       spec.id, spec.flags);

Error: CPPCHECK_WARNING: [#def234]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/bench-slope.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def235]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/bench-slope.c:288:25: warning[deadcode.DeadStores]: Although the value stored to 'sumy2' is used in the enclosing expression, the value is never actually read from 'sumy2'
#  286|     double b, a;
#  287|   
#  288|->   sumx = sumy = sumx2 = sumy2 = sumxy = 0;
#  289|   
#  290|     if (npoints <= 1)

Error: CPPCHECK_WARNING: [#def236]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/benchmark.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def237]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/benchmark.c:885:3: warning[deadcode.DeadStores]: Value stored to 'outbuf' is never read
#  883|     buf = (raw_buf
#  884|            + ((16 - ((size_t)raw_buf & 0x0f)) % buffer_alignment));
#  885|->   outbuf = raw_outbuf = gcry_xmalloc (allocated_buflen+15);
#  886|     outbuf = (raw_outbuf
#  887|               + ((16 - ((size_t)raw_outbuf & 0x0f)) % buffer_alignment));

Error: CPPCHECK_WARNING: [#def238]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/curves.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def239]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/dsa-rfc6979.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def240]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fips186-dsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def241]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def242]
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>)’
#  302|           buffer = gcry_xrealloc (buffer, bufsize);
#  303|   
#  304|->       nread = fread (buffer + buflen, 1, NCHUNK, fp);
#  305|         if (nread < NCHUNK && ferror (fp))
#  306|           {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def243]
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")’
#  302|           buffer = gcry_xrealloc (buffer, bufsize);
#  303|   
#  304|->       nread = fread (buffer + buflen, 1, NCHUNK, fp);
#  305|         if (nread < NCHUNK && ferror (fp))
#  306|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:304:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname,  <unknown>)’
#  302|           buffer = gcry_xrealloc (buffer, bufsize);
#  303|   
#  304|->       nread = fread (buffer + buflen, 1, NCHUNK, fp);
#  305|         if (nread < NCHUNK && ferror (fp))
#  306|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:304:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "rb")’
#  302|           buffer = gcry_xrealloc (buffer, bufsize);
#  303|   
#  304|->       nread = fread (buffer + buflen, 1, NCHUNK, fp);
#  305|         if (nread < NCHUNK && ferror (fp))
#  306|           {

Error: GCC_ANALYZER_WARNING (CWE-617): [#def246]
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
#  529|     buffer = read_file (fp, 0, &buflen);
#  530|     if (!buffer)
#  531|->     die ("error reading `%s'\n", fname);
#  532|     fclose (fp);
#  533|   

Error: GCC_ANALYZER_WARNING (CWE-617): [#def247]
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
#  621|     buffer = read_file (fp, 0, &buflen);
#  622|     if (!buffer)
#  623|->     die ("error reading `%s'\n", fname);
#  624|     fclose (fp);
#  625|   

Error: CPPCHECK_WARNING (CWE-457): [#def248]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:723: warning[uninitvar]: Uninitialized variable: s_sig
#  721|     gcry_free (buffer);
#  722|   
#  723|->   return s_sig;
#  724|   }
#  725|   

Error: GCC_ANALYZER_WARNING (CWE-617): [#def249]
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
#  740|     buffer = read_file (fp, 0, &buflen);
#  741|     if (!buffer)
#  742|->     die ("error reading `%s'\n", fname);
#  743|     fclose (fp);
#  744|     if (!buflen)

Error: CLANG_WARNING: [#def250]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:837:24: warning[unix.Errno]: An undefined value may be read from 'errno'
#  835|       {
#  836|   #ifndef HAVE_W32_SYSTEM
#  837|->       if (loop_mode && errno == EPIPE)
#  838|           loop_mode = 0;
#  839|         else

Error: CPPCHECK_WARNING (CWE-457): [#def251]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:1147: error[legacyUninitvar]: Uninitialized variable: last_output
# 1145|     for (count=0; count < iterations; count++)
# 1146|       {
# 1147|->       memcpy (last_last_output, last_output, sizeof last_output);
# 1148|         memcpy (last_output, output, sizeof output);
# 1149|   

Error: CPPCHECK_WARNING (CWE-457): [#def252]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:1270: warning[uninitvar]: Uninitialized variable: s_keyspec
# 1268|            gpg_strerror (err));
# 1269|   
# 1270|->   err = gcry_pk_genkey (&s_key, s_keyspec);
# 1271|     if (err)
# 1272|       die ("gcry_pk_genkey failed for RSA: %s\n", gpg_strerror (err));

Error: CPPCHECK_WARNING (CWE-457): [#def253]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:1333: warning[uninitvar]: Uninitialized variable: s_keyspec
# 1331|            gpg_strerror (err));
# 1332|   
# 1333|->   err = gcry_pk_genkey (&s_key, s_keyspec);
# 1334|   
# 1335|     gcry_sexp_release (s_keyspec);

Error: CPPCHECK_WARNING (CWE-457): [#def254]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:2013: warning[uninitvar]: Uninitialized variable: s_data
# 2011|     s_key = read_sexp_from_file (keyfile);
# 2012|   
# 2013|->   err = gcry_pk_sign (&s_sig, s_data, s_key);
# 2014|     if (err)
# 2015|       {

Error: CPPCHECK_WARNING (CWE-457): [#def255]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:2108: warning[uninitvar]: Uninitialized variable: s_data
# 2106|     s_sig = read_sexp_from_file (sigfile);
# 2107|   
# 2108|->   err = gcry_pk_verify (s_sig, s_data, s_key);
# 2109|     if (!err)
# 2110|       puts ("GOOD signature");

Error: CPPCHECK_WARNING (CWE-457): [#def256]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:2151: warning[uninitvar]: Uninitialized variable: s_data
# 2149|            gpg_strerror (err));
# 2150|   
# 2151|->   err = gcry_pk_sign (&s_sig, s_data, s_key);
# 2152|     if (err)
# 2153|       {

Error: CPPCHECK_WARNING (CWE-457): [#def257]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/fipsdrv.c:2227: warning[uninitvar]: Uninitialized variable: s_data
# 2225|     s_sig = read_sexp_from_file (sigfile);
# 2226|   
# 2227|->   err = gcry_pk_verify (s_sig, s_data, s_key);
# 2228|     if (!err)
# 2229|       puts ("GOOD signature");

Error: CPPCHECK_WARNING: [#def258]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/gchash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def259]
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’
#   94|         unsigned char *h;
#   95|         if (!strcmp (*argv, "-"))
#   96|->         fp = stdin;
#   97|         else
#   98|           fp = fopen (*argv, "r");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
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’
#   94|         unsigned char *h;
#   95|         if (!strcmp (*argv, "-"))
#   96|->         fp = stdin;
#   97|         else
#   98|           fp = fopen (*argv, "r");

Error: CPPCHECK_WARNING: [#def261]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/genhashdata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def262]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/hashtest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def263]
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
#  393|         return 1;
#  394|       }
#  395|->   if (memcmp (tv_digest, digest, tv_digestlen))
#  396|       {
#  397|         fail ("%d GiB %+3d %-10s error: %s",

Error: CPPCHECK_WARNING: [#def264]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/keygen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def265]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/keygen.c:89: error[uninitvar]: Uninitialized variable: buf
#   87|     else
#   88|       {
#   89|->       fprintf (stderr, "%s\n", buf);
#   90|         gcry_free (buf);
#   91|       }

Error: CLANG_WARNING: [#def266]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/keygen.c:653:3: warning[deadcode.DeadStores]: Value stored to 'n' is never read
#  651|     /* Simple hack to check nbits.  */
#  652|     nbits = gcry_pk_get_nbits (key);
#  653|->   n = 0;
#  654|     for (s=algoname; !isdigit (*s); s++)
#  655|       ;

Error: CPPCHECK_WARNING: [#def267]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/keygrip.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def268]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/mpitests.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def269]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/pkcs1v2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def270]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/prime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def271]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/pubkey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def272]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/random.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def273]
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’
#  199|       die ("parent and child got the same random number\n");
#  200|   #endif  /*!HAVE_W32_SYSTEM*/
#  201|-> }
#  202|   
#  203|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def274]
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’
#  266|       die ("parent and child got the same nonce\n");
#  267|   #endif  /*!HAVE_W32_SYSTEM*/
#  268|-> }
#  269|   
#  270|   

Error: CPPCHECK_WARNING: [#def275]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/rsacvt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def276]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-convert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def277]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-convert.c:118: error[uninitvar]: Uninitialized variable: buf
#  116|                 fmts[i].name,gpg_strerror (err) );
#  117|         else
#  118|->         gcry_free (buf);
#  119|       }
#  120|   

Error: CPPCHECK_WARNING: [#def278]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-cv25519.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def279]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-cv25519.c:51: error[uninitvar]: Uninitialized variable: buf
#   49|     else
#   50|       {
#   51|->       fprintf (stderr, "%s: %s\n", text, buf);
#   52|         gcry_free (buf);
#   53|       }

Error: CPPCHECK_WARNING: [#def280]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-dsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def281]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-dsa.c:370:19: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  368|                 if (!out_r)
#  369|                   {
#  370|->                   err = gpg_error_from_syserror ();
#  371|                     gcry_sexp_release (s_tmp);
#  372|                     gcry_sexp_release (s_tmp2);

Error: CLANG_WARNING: [#def282]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-dsa.c:396:19: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  394|                 if (!out_s)
#  395|                   {
#  396|->                   err = gpg_error_from_syserror ();
#  397|                     gcry_sexp_release (s_tmp);
#  398|                     gcry_sexp_release (s_tmp2);

Error: CPPCHECK_WARNING: [#def283]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-ecdsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def284]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-ecdsa.c:414:19: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  412|                 if (!out_r)
#  413|                   {
#  414|->                   err = gpg_error_from_syserror ();
#  415|                     gcry_sexp_release (s_tmp);
#  416|                     gcry_sexp_release (s_tmp2);

Error: CLANG_WARNING: [#def285]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-ecdsa.c:440:19: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  438|                 if (!out_s)
#  439|                   {
#  440|->                   err = gpg_error_from_syserror ();
#  441|                     gcry_sexp_release (s_tmp);
#  442|                     gcry_sexp_release (s_tmp2);

Error: CPPCHECK_WARNING: [#def286]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-ed25519.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def287]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-ed448.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def288]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-kdf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def289]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-kem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def290]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-lock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def291]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-mlkem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def292]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-mpi-bit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def293]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-mpi-point.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def294]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-mpi-point.c:161: error[uninitvar]: Uninitialized variable: buf
#  159|     else
#  160|       {
#  161|->       fprintf (stderr, "%s%s: %s\n", text, text2? text2:"", buf);
#  162|         gcry_free (buf);
#  163|       }

Error: CPPCHECK_WARNING: [#def295]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-rsa-15.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def296]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-rsa-pss.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def297]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-rsa-testparm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def298]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-secmem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def299]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-sexp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def300]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-x448.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def301]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/t-x448.c:52: error[uninitvar]: Uninitialized variable: buf
#   50|     else
#   51|       {
#   52|->       fprintf (stderr, "%s: %s\n", text, buf);
#   53|         gcry_free (buf);
#   54|       }

Error: CPPCHECK_WARNING: [#def302]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/testdrv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
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’
#  103|   #endif
#  104|   #define DIMof(type,member)   DIM(((type *)0)->member)
#  105|-> #define xfree(a)      free ((a))
#  106|   #define spacep(p)   (*(p) == ' ' || *(p) == '\t')
#  107|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
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’
#  104|   #define DIMof(type,member)   DIM(((type *)0)->member)
#  105|   #define xfree(a)      free ((a))
#  106|-> #define spacep(p)   (*(p) == ' ' || *(p) == '\t')
#  107|   
#  108|   /* If we have a decent libgpg-error we can use some gcc attributes.  */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def305]
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)’
#  557|             die ("failed to open '%s': %s\n", "/dev/null", strerror (errno));
#  558|           }
#  559|->       if (fd != 0 && dup2 (fd, 0) == -1)
#  560|           {
#  561|             xfree (arg_list);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def306]
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)’
#  557|             die ("failed to open '%s': %s\n", "/dev/null", strerror (errno));
#  558|           }
#  559|->       if (fd != 0 && dup2 (fd, 0) == -1)
#  560|           {
#  561|             xfree (arg_list);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def307]
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)’
#  557|             die ("failed to open '%s': %s\n", "/dev/null", strerror (errno));
#  558|           }
#  559|->       if (fd != 0 && dup2 (fd, 0) == -1)
#  560|           {
#  561|             xfree (arg_list);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def308]
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)’
#  571|                 die ("failed to open '%s': %s\n", "/dev/null", strerror (errno));
#  572|               }
#  573|->           if (fd != 1 && dup2 (fd, 1) == -1)
#  574|               {
#  575|                 xfree (arg_list);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def309]
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)’
#  571|                 die ("failed to open '%s': %s\n", "/dev/null", strerror (errno));
#  572|               }
#  573|->           if (fd != 1 && dup2 (fd, 1) == -1)
#  574|               {
#  575|                 xfree (arg_list);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def310]
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)’
#  571|                 die ("failed to open '%s': %s\n", "/dev/null", strerror (errno));
#  572|               }
#  573|->           if (fd != 1 && dup2 (fd, 1) == -1)
#  574|               {
#  575|                 xfree (arg_list);

Error: CPPCHECK_WARNING: [#def311]
libgcrypt-1.11.0-build/libgcrypt-1.11.0/tests/version.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-124.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibgcrypt-1.11.0-1.fc41
store-results-to/tmp/tmp_al6t2g8/libgcrypt-1.11.0-1.fc41.tar.xz
time-created2024-07-03 14:42:54
time-finished2024-07-03 14:46:14
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp_al6t2g8/libgcrypt-1.11.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp_al6t2g8/libgcrypt-1.11.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9