libmicrohttpd2

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

commit 4d19877bdf1e9c9348a813c6f39a5d41aae97b92
parent cfc904276d6e147f36de2f9a185f544597707f6a
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 28 May 2026 09:50:01 +0200

another fix: delim_pos > i is basically always false, needs cmp against actual start of value (which was subtracted, so actually against zero)

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

diff --git a/src/mhd2/post_parser_funcs.c b/src/mhd2/post_parser_funcs.c @@ -2025,7 +2025,7 @@ parse_post_mpart (struct MHD_Connection *restrict c, { mf->line_start = delim_pos + 1; i = delim_pos + mf->delim.size - 1; - if ((delim_pos > buf + i) && + if ((delim_pos > 0) && ('\r' == buf[delim_pos - 1])) --delim_pos; }