fix oversized array

This commit is contained in:
Christian Grothoff
2026-07-08 11:36:24 +02:00
parent 930e236ea3
commit b7dd720a32
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
{
+1 -1
View File
@@ -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),