Ville Vesilehto 7b752106ac
Merge commit from fork
* fix(parser): Limit line length in getline

Prevents potential infinite loop and memory exhaustion in
stream_line_reader::getline by enforcing max line length.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>

* fix: increase default max line length to 32k

LONG_QUERY_VALUE test is set at 25k.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>

* test(client): expect read error with too long query

Adds a test case (`TooLongQueryValue`) to verify client behavior
when the request URI is excessively long, exceeding
`CPPHTTPLIB_MAX_LINE_LENGTH`. In this scenario, the server is
expected to reset the connection.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>

---------

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
2025-05-03 04:39:01 -04:00
..
2022-02-09 17:16:18 -05:00
2021-09-11 14:26:48 -04:00
2021-09-11 14:26:48 -04:00
2024-09-17 18:37:44 -04:00
2017-12-29 22:34:59 -05:00
2025-03-16 15:51:53 -04:00
2025-05-03 04:39:01 -04:00
2013-07-04 18:18:52 -04:00
2024-11-16 11:14:13 -05:00