process_request_body(): fixed: do allow sizes with more than 16 digits

As per RFC, '000000000000000000000000000000000000001' is a valid size
This commit is contained in:
Evgeny Grin (Karlson2k)
2021-11-24 19:09:31 +03:00
parent 27cd374594
commit 482ca8e164
-3
View File
@@ -3176,8 +3176,6 @@ process_request_body (struct MHD_Connection *connection)
(';' == buffer_head[i]) )
break;
i++;
if (i >= 16)
break;
}
if (i >= available)
break;
@@ -3199,7 +3197,6 @@ process_request_body (struct MHD_Connection *connection)
if (i + 1 >= available)
break; /* need more data... */
i++;
malformed = (end_size >= 16);
if (! malformed)
{
size_t num_dig = MHD_strx_to_uint64_n_ (buffer_head,