libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit b7dd720a3275302686bd38998d057fadae7fe9b2
parent 930e236ea34e5115f41c5532a52529662a6210df
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Wed,  8 Jul 2026 11:36:24 +0200

fix oversized array

Diffstat:
Msrc/microhttpd/response.c | 2+-
Msrc/microhttpd/sha256.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -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 { diff --git a/src/microhttpd/sha256.c b/src/microhttpd/sha256.c @@ -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),