guard/src
loki5512344 08b7292ac4
test: fuzz the HTTP and PROXY v2 parsers, make PROXY parsing pure
- PROXY v2 header parsing is now the pure, total function
  `parse_v2_header(buf, limit) -> (SocketAddr, consumed)`; the async reader
  only reads bytes and delegates. This makes the parser reachable from tests
  and fuzz targets and keeps every index bounds-checked.
- tests/proxy_v2_parser.rs: valid v4/v6 headers, bad signature, non-PROXY
  command, TLVs, every truncated prefix, oversized header, unsupported
  family, short address block, and a deterministic sweep over family/length.
- fuzz/: cargo-fuzz targets `http_head` (scan_head + evaluate) and `proxy_v2`
  with invariants (no panic, no out-of-buffer consumption, family matches the
  header). Seeds for the HTTP head keep coverage useful; `make fuzz` runs
  60 s per target. Both targets ran clean (7M and 3M executions).
- docs/testing.md documents the fuzz workflow; .gitignore covers the
  generated corpus/artifacts.
2026-11-16 12:47:25 +01:00
..
app fix(core): close auth bypass, hangs and memory leaks found by review 2026-11-16 12:06:23 +01:00
bin feat(manager): SCAN inventory, pagination, request limits, graceful shutdown 2026-11-16 12:36:29 +01:00
cli fix(core): close auth bypass, hangs and memory leaks found by review 2026-11-16 12:06:23 +01:00
config fix(edge): IPv6 bind, configurable relay idle, per-gateway budget, PROXY identity 2026-11-16 12:36:19 +01:00
engine test: fuzz the HTTP and PROXY v2 parsers, make PROXY parsing pure 2026-11-16 12:47:25 +01:00
filter fix(core): close auth bypass, hangs and memory leaks found by review 2026-11-16 12:06:23 +01:00
manager test: move the last inline test modules to tests/, document new signals 2026-11-16 12:36:29 +01:00
protocol test: move the last inline test modules to tests/, document new signals 2026-11-16 12:36:29 +01:00
store fix(core): close auth bypass, hangs and memory leaks found by review 2026-11-16 12:06:23 +01:00
traffic test: move the last inline test modules to tests/, document new signals 2026-11-16 12:36:29 +01:00
tui test: move the last inline test modules to tests/, document new signals 2026-11-16 12:36:29 +01:00
xdp feat(xdp): estimate distinct sources in prefix stats, fix the detection window 2026-11-16 12:36:19 +01:00
lib.rs feat(xdp): IPv6 UDP rate limit, working loader; English comments and docs 2026-11-15 23:50:52 +01:00
metrics.rs feat(xdp): IPv6 UDP rate limit, working loader; English comments and docs 2026-11-15 23:50:52 +01:00