tests/fuzz_proxy.py starts the sanitizer proxy against a local origin and sends
mutated raw request heads in a fresh connection each time:
- seeds: absolute-URI GET, CONNECT, origin-form GET;
- 60 mutations: bit flip, truncate, duplicate/delete, invalid UTF-8/NUL, CRLF
injection, 1k/40k/100k request lines, garbage request line;
- the client half-closes after sending, so a truncated head is EOF, not a 20 s
read timeout. A case fails on a dead proxy, a sanitizer report, or a
connection that never closes. 400/403/501/502 and an ECONNRESET after the
proxy rejected unread bytes are successes. Valid requests must still get a
200 (the run counts them), so a proxy that rejects everything cannot pass.
make fuzz-proxy: 60 cases, 23 valid 200 answers, no sanitizer report, no hang.
make fuzz-proxy-red builds the same proxy with a deliberate heap overflow in the
request path (APEX_FUZZ_BUG_PROXY) and requires the fuzzer to reject it: 3
failure lines, including the proxy.c UBSan report, 'harness caught the
deliberate bug'. Normal builds never see the macro.
239 checks + 240 file fuzz cases + 60 proxy fuzz cases.