curl/tests/server
Jay Satiro 0dd0bb0d1a tests/server: add more SOCKS5 handshake error checking
- Add additional checking for missing and too-short SOCKS5 handshake
  messages.

Prior to this change the SOCKS5 test server did not check that all parts
of the handshake were received successfully. If those parts were missing
or too short then the server would access uninitialized memory.

This issue was discovered in CI job 'memory-sanitizer' test results.
Test 2055 was failing due to the SOCKS5 test server not running. It was
not running because either it crashed or memory sanitizer aborted it
during Test 728. Test 728 connects to the SOCKS5 test server on a
redirect but does not send any data on purpose. The test server was not
prepared for that.

Reported-by: Dan Fandrich

Fixes https://github.com/curl/curl/issues/12117
Closes https://github.com/curl/curl/pull/12118
2023-10-14 22:42:49 -04:00
..
.gitignore tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
base64.pl
CMakeLists.txt
disabled.c lib: add ability to disable auths individually 2023-09-07 17:45:06 +02:00
fake_ntlm.c tests: fix compiler warnings 2023-09-24 21:52:54 +00:00
getpart.c
getpart.h
Makefile.am
Makefile.inc
mqttd.c build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
resolve.c build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
rtspd.c spelling: fix codespell 2.2.6 typos 2023-10-03 21:37:56 +00:00
server_setup.h
server_sockaddr.h
sockfilt.c tests: fix a race condition in ftp server disconnect 2023-10-07 11:19:39 -07:00
socksd.c tests/server: add more SOCKS5 handshake error checking 2023-10-14 22:42:49 -04:00
sws.c build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
testpart.c
tftp.h
tftpd.c build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
util.c build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
util.h