mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
fix oversized array
This commit is contained in:
@@ -352,8 +352,8 @@ add_response_header_connection (struct MHD_Response *response,
|
||||
key, key_len);
|
||||
already_has_close =
|
||||
(0 != (response->flags_auto & MHD_RAF_HAS_CONNECTION_CLOSE));
|
||||
mhd_assert (already_has_close == (0 == memcmp (hdr->value, "close", 5)));
|
||||
mhd_assert (NULL != hdr);
|
||||
mhd_assert (already_has_close == (0 == memcmp (hdr->value, "close", 5)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -327,7 +327,7 @@ sha256_transform (uint32_t H[SHA256_DIGEST_SIZE_WORDS],
|
||||
unsigned int t;
|
||||
/* K constants array.
|
||||
See FIPS PUB 180-4 paragraph 4.2.2 for K values. */
|
||||
static const uint32_t K[80] =
|
||||
static const uint32_t K[64] =
|
||||
{ UINT32_C (0x428a2f98), UINT32_C (0x71374491), UINT32_C (0xb5c0fbcf),
|
||||
UINT32_C (0xe9b5dba5), UINT32_C (0x3956c25b), UINT32_C (0x59f111f1),
|
||||
UINT32_C (0x923f82a4), UINT32_C (0xab1c5ed5), UINT32_C (0xd807aa98),
|
||||
|
||||
Reference in New Issue
Block a user