libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 4b8169156d654efdd4b1e5b10056e2ed6dd7f966
parent 253bb3ed0ad797be3f6b32beb4d19c364e8070c9
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Sun,  2 Aug 2026 17:05:23 +0200

Fixed H2 over-allocation spotted by DarrenC.

Diffstat:
Msrc/mhd2/h2/h2_req_items_funcs.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mhd2/h2/h2_req_items_funcs.c b/src/mhd2/h2/h2_req_items_funcs.c @@ -172,7 +172,7 @@ mhd_h2_items_block_create (size_t buffer_size) buf_alloc_size = (buffer_size & 0xFFFFFFFFu); if (mhd_COND_HARDLY_EVER ((0xFFFFFFFFu - 2u * mhd_ALIGNOF (struct mhd_H2ReqItem)) - > buffer_size)) + < buffer_size)) buf_alloc_size = (uint_fast32_t)(0xFFFFFFFFu - 2 * mhd_ALIGNOF (struct mhd_H2ReqItem));