commit 5224f4454e596343c5dda48172e958451f6dc003
parent cc5ddc3a11ea6f5fddda5b57e6dd0f8063d177bb
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Sun, 16 Aug 2026 11:42:19 +0200
mhd_stream_prep_unchunked_body(): added assert
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mhd2/stream_process_reply.c b/src/mhd2/stream_process_reply.c
@@ -1235,6 +1235,8 @@ mhd_stream_prep_unchunked_body (struct MHD_Connection *restrict c)
if (size_to_fill > left_to_send)
size_to_fill = (size_t)left_to_send;
+ mhd_assert (c->write_buffer_append_offset < c->write_buffer_size);
+
if (!read_response_file (c,
r,
size_to_fill,