commit cfc904276d6e147f36de2f9a185f544597707f6a
parent f8c82eb3700b273cd553f04c19eebd1d21bf2bfb
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 28 May 2026 09:48:16 +0200
another fix: delim_pos > i is basically always false, needs cmp against actual start of value
Diffstat:
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 > i) &&
+ if ((delim_pos > buf + i) &&
('\r' == buf[delim_pos - 1]))
--delim_pos;
}