curl/tests/server
Daniel Stenberg d5c738c608
strparse: string parsing helper functions
Designed to aid converting off from sscanf parsers. sscanf is hard to
use right, easy to mess up and often makes for sloppy error checking.

The new parsers allow more exact and pedandic parsing.

This new set of functions should be possible to use (and extend) and
switch over other libcurl parser code to use going forward.

Adapts the following to use the new functions:

- altsvc.c
- hsts.c
- http_aws_sigv4.c

Bonus: fewer memory copies, fewer stack buffers.

Test: Unit test1664

Docs: docs/internals/STRPARSE.md

Closes #15692
2024-12-12 16:00:52 +01:00
..
.checksrc tests/server/util.c: remove use of strncpy 2024-10-10 07:47:01 +02:00
.gitignore NTLM_WB: delete remains in tests, docs updates 2024-09-10 14:13:36 +02:00
base64.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
CMakeLists.txt cmake: replace CURL_*_DIR with {PROJECT,CMAKE_CURRENT}_*_DIR 2024-10-22 19:13:08 +02:00
disabled.c strparse: string parsing helper functions 2024-12-12 16:00:52 +01:00
getpart.c server/getpart: delete unused code 2024-09-09 16:57:36 +02:00
getpart.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
Makefile.am tests/server/util.c: remove use of strncpy 2024-10-10 07:47:01 +02:00
Makefile.inc NTLM_WB: delete remains in tests, docs updates 2024-09-10 14:13:36 +02:00
mqttd.c server/mqttd: fix two memory leaks 2024-10-14 12:47:21 +02:00
resolve.c cmake: allow building tests in unity mode 2024-09-19 21:32:58 +02:00
rtspd.c build: fix MSVC UWP builds 2024-11-28 14:24:03 +01:00
server_setup.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
server_sockaddr.h build: prefer USE_IPV6 macro internally (was: ENABLE_IPV6) 2024-04-13 08:33:26 +00:00
sockfilt.c warnless: remove curlx_sktosi and curlx_sitosk 2024-10-05 00:28:06 +02:00
socksd.c lib/src: white space edits to comply better with code style 2024-09-19 14:59:12 +02:00
sws.c build: fix MSVC UWP builds 2024-11-28 14:24:03 +01:00
testpart.c lib/src: white space edits to comply better with code style 2024-09-19 14:59:12 +02:00
tftp.h tests: tidy up types in server code 2024-05-13 11:16:26 +02:00
tftpd.c build: fix MSVC UWP builds 2024-11-28 14:24:03 +01:00
util.c build: fix MSVC UWP builds 2024-11-28 14:24:03 +01:00
util.h build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00