mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user