Add M10.9c-1 session fuzzing and in-process abuse tests
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (checks) (push) Successful in 17s
Foundation / checks (ecs) (push) Successful in 12s
Foundation / checks (client) (push) Successful in 1m47s
Foundation / checks (tsan) (push) Successful in 5m44s
Foundation / checks (network) (push) Successful in 13m29s
Foundation / checks (postgres) (push) Successful in 44m22s
Foundation / server-image (push) Successful in 31s
Foundation / postgres-tools (push) Successful in 1m34s
Foundation / image (push) Successful in 2m37s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (checks) (push) Successful in 17s
Foundation / checks (ecs) (push) Successful in 12s
Foundation / checks (client) (push) Successful in 1m47s
Foundation / checks (tsan) (push) Successful in 5m44s
Foundation / checks (network) (push) Successful in 13m29s
Foundation / checks (postgres) (push) Successful in 44m22s
Foundation / server-image (push) Successful in 31s
Foundation / postgres-tools (push) Successful in 1m34s
Foundation / image (push) Successful in 2m37s
ADR-0097. A libFuzzer target for session protocol v4, grants, tickets and snapshot assembly (canonical re-encoding, verifiers always refuse, a completed snapshot is applied), with the code under test compiled in, and a seeded smoke CTest of the same target on every platform. Four quic-sessions abuse tests measure an honest session tick by tick under a Hello flood (garbage, untrusted grants, silence), a datagram flood, a slow peer and a connect/disconnect storm; it keeps every snapshot and receipt while connections and retained state stay bounded. evo-session-probe run --grants FILE [--grant N] logs in from an existing bundle (a dev renewal's) without an issuer key. client_lifecycle uses SDL_getenv (MSVC rejected std::getenv). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -74,6 +74,12 @@ if(BUILD_TESTING)
|
||||
evo_owned_target(evo-network-tests)
|
||||
add_test(NAME network COMMAND evo-network-tests)
|
||||
set_tests_properties(network PROPERTIES TIMEOUT 120 LABELS "network")
|
||||
# M10.9c (ADR-0097): the session protocol fuzz target, run as a seeded smoke test.
|
||||
add_executable(evo-session-fuzz-smoke tests/fuzz/session_fuzz.cpp tests/fuzz/session_fuzz_smoke.cpp)
|
||||
target_link_libraries(evo-session-fuzz-smoke PRIVATE evo_network_tls)
|
||||
evo_owned_target(evo-session-fuzz-smoke)
|
||||
add_test(NAME session-fuzz-smoke COMMAND evo-session-fuzz-smoke)
|
||||
set_tests_properties(session-fuzz-smoke PROPERTIES TIMEOUT 300 LABELS "network")
|
||||
endif()
|
||||
if(EVO_BUILD_FUZZER)
|
||||
# Coverage-guided codec fuzzing (Linux Clang; see the EVO_BUILD_FUZZER guard).
|
||||
@@ -83,4 +89,14 @@ if(EVO_BUILD_FUZZER)
|
||||
evo_owned_target(evo-dev-session-fuzz)
|
||||
target_compile_options(evo-dev-session-fuzz PRIVATE -fsanitize=fuzzer,address,undefined -fno-omit-frame-pointer)
|
||||
target_link_options(evo-dev-session-fuzz PRIVATE -fsanitize=fuzzer,address,undefined)
|
||||
# M10.9c: session protocol v4, grants, tickets and snapshot assembly (ADR-0097).
|
||||
# The code under test is compiled into the target so coverage instruments it.
|
||||
add_executable(evo-session-fuzz tests/fuzz/session_fuzz.cpp
|
||||
src/network/protocol/session_protocol.cpp src/network/protocol/replication.cpp
|
||||
src/network/protocol/probe_motion.cpp src/network/protocol/session_control.cpp src/network/tls/session_grant.cpp
|
||||
src/network/tls/handoff_ticket.cpp)
|
||||
target_link_libraries(evo-session-fuzz PRIVATE evo_client_views evo_client_controls mbedtls)
|
||||
evo_owned_target(evo-session-fuzz)
|
||||
target_compile_options(evo-session-fuzz PRIVATE -fsanitize=fuzzer,address,undefined -fno-omit-frame-pointer)
|
||||
target_link_options(evo-session-fuzz PRIVATE -fsanitize=fuzzer,address,undefined)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user