commit 482ca8e1648e166c24cebebb98d433f2c853ecd3
parent 27cd374594dc2f3d9f957f1b6a539a09b68b196a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 23 Nov 2021 18:56:07 +0300
process_request_body(): fixed: do allow sizes with more than 16 digits
As per RFC, '000000000000000000000000000000000000001' is a valid size
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -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,