POST multipart parser: fixed processing of the data with broken termination

This commit is contained in:
Evgeny Grin (Karlson2k)
2024-09-02 01:36:56 +02:00
parent 152414c667
commit c4fb54d46c
+1 -1
View File
@@ -2634,7 +2634,7 @@ check_post_leftovers_mpart (struct MHD_Connection *restrict c,
if (0 != mf->f.value_idx)
{
value_pos = mf->f.value_idx;
value_len = pos - mf->delim_check_start;
value_len = mf->delim_check_start - mf->f.value_idx;
}
break;
case mhd_POST_MPART_ST_FULL_FIELD_FOUND: