Skip to content

fix(fuzz): link http_protocol_handlers.c + grpc.c into embedded harnesses#112

Merged
EdmondDantes merged 1 commit into
mainfrom
fix/fuzz-embedded-link
Jul 9, 2026
Merged

fix(fuzz): link http_protocol_handlers.c + grpc.c into embedded harnesses#112
EdmondDantes merged 1 commit into
mainfrom
fix/fuzz-embedded-link

Conversation

@EdmondDantes

Copy link
Copy Markdown
Contributor

Fixes the pre-existing red Fuzz embedded CI job (link failure, introduced with #109).

http_parser.c's on_headers_complete calls http_request_classify_protocols / http_request_body_must_buffer (src/core/http_protocol_handlers.c), which call grpc_request_mode (src/grpc/grpc.c). Neither TU was in the harness source list.

Both TUs are self-contained (PHP-core symbols only), so added to HTTP1_SRC + H2_SRC rather than stubbed — fuzzer now exercises real gRPC classification.

Verified: both harnesses build+link; fuzz_http1_parser runs 50 iters clean (cov 91→255, no crash).

…sses

fuzz_http1_parser / fuzz_h2_session failed at link time — http_parser.c's
on_headers_complete calls http_request_classify_protocols and
http_request_body_must_buffer (src/core/http_protocol_handlers.c), which
in turn calls grpc_request_mode (src/grpc/grpc.c). Neither TU was in the
harness source list, so the CI 'Fuzz embedded' job was red at link.

Both TUs are self-contained (PHP-core symbols only, no server-side deps),
so add them to HTTP1_SRC and H2_SRC rather than stubbing — the fuzzer now
exercises real gRPC classification. Verified: both harnesses build and
link; fuzz_http1_parser runs 50 iterations clean (cov 91->255, no crash).
@EdmondDantes EdmondDantes merged commit 34447d9 into main Jul 9, 2026
5 checks passed
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Coverage

Total lines: 80.84% → 81.11% (+0.27 pp)

File Baseline Current Δ Touched
src/core/worker_dispatch.c 67.60% 70.03% +2.44 pp
src/core/worker_registry.c 61.63% 65.12% +3.49 pp
src/http3/http3_callbacks.c 79.25% 79.36% +0.11 pp
src/http3/http3_connection.c 81.43% 81.70% +0.27 pp
src/http3/http3_dispatch.c 78.12% 78.98% +0.85 pp
src/http3/http3_io.c 86.55% 89.09% +2.55 pp
src/http3/http3_listener.c 72.74% 76.57% +3.83 pp
src/http3/http3_steer.c 87.50% 100.00% +12.50 pp
src/log/http_log.c 67.94% 68.29% +0.35 pp

@EdmondDantes EdmondDantes deleted the fix/fuzz-embedded-link branch July 9, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant