[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/06: process_request_body(): fixed: do allow sizes wit
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/06: process_request_body(): fixed: do allow sizes with more than 16 digits |
Date: |
Wed, 24 Nov 2021 19:57:11 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 482ca8e1648e166c24cebebb98d433f2c853ecd3
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Nov 23 18:56:07 2021 +0300
process_request_body(): fixed: do allow sizes with more than 16 digits
As per RFC, '000000000000000000000000000000000000001' is a valid size
---
src/microhttpd/connection.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index d3ebc076..5928c5ea 100644
--- 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,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (ad9fc5c6 -> 385b4df1), gnunet, 2021/11/24
- [libmicrohttpd] 04/06: parse_connection_headers(): simplified 'Content-Length' processing, gnunet, 2021/11/24
- [libmicrohttpd] 02/06: process_request_body(): fixed: do allow sizes with more than 16 digits,
gnunet <=
- [libmicrohttpd] 01/06: process_request_body(): fixed one byte buffer overrun, gnunet, 2021/11/24
- [libmicrohttpd] 03/06: process_request_body(): rewritten chunk size detection; fixes, gnunet, 2021/11/24
- [libmicrohttpd] 05/06: Fixed builds without messages, gnunet, 2021/11/24
- [libmicrohttpd] 06/06: parse_connection_headers(): report if client payload is too large., gnunet, 2021/11/24