nginx: add proxy_protocol_fuzzer#52
Open
tc-agent wants to merge 2 commits into
Open
Conversation
Fuzzing Coverage ReportTested: project
Per-harness
Δ = (after − before) / before, to accommodate that denominators may change. "new" when before is 0; "deleted" when after is 0. |
tc-agent
force-pushed
the
master
branch
8 times, most recently
from
May 9, 2026 17:27
6c52918 to
0c732ae
Compare
tc-agent
force-pushed
the
master
branch
18 times, most recently
from
May 11, 2026 19:27
c053f96 to
3fe38a2
Compare
tc-agent
force-pushed
the
master
branch
13 times, most recently
from
May 21, 2026 13:42
9a36aa8 to
6a4a93d
Compare
tc-agent
force-pushed
the
master
branch
3 times, most recently
from
May 27, 2026 06:33
6125235 to
e512e7e
Compare
tc-agent
force-pushed
the
update-nginx-fuzzing
branch
from
May 27, 2026 07:54
d859a28 to
43da2ba
Compare
tc-agent
force-pushed
the
master
branch
5 times, most recently
from
May 27, 2026 16:16
b5fd10c to
712a52f
Compare
tc-agent
force-pushed
the
update-nginx-fuzzing
branch
from
May 27, 2026 16:44
43da2ba to
8fbe842
Compare
tc-agent
force-pushed
the
master
branch
6 times, most recently
from
May 28, 2026 18:05
af7f9a7 to
806b281
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a libFuzzer harness for the PROXY protocol parser
(
ngx_proxy_protocol_readandngx_proxy_protocol_get_tlv).Why
Fuzz Introspector reports the project at 13.24% line
coverage
(May 8, 2026 build),
hit by a single existing harness.
src/core/ngx_proxy_protocol.cis 614 lines and is currently unreached by any harness — the PROXY
protocol is parsed before HTTP request handling and the existing
harness's nginx config does not enable
proxy_protocolon itslistener. Both v1 (text, with TCP4/TCP6/UNKNOWN forms) and v2
(binary, with TLV records) are exercised.
How
fuzz/proxy_protocol_fuzzer.cccallsngx_proxy_protocol_readonthe fuzz input with a fresh per-iteration
ngx_pool_t. When the v2parse succeeds and TLVs are present, the harness then invokes
ngx_proxy_protocol_get_tlvfor each known TLV name (alpn,authority,unique_id,netns, thessl_*family) plus ahex-form name to cover the
0xNNlookup branch. Input is copiedinto a heap allocation before parsing so ASan flags any out-of-bounds
read.
Build is wired through
auto/make_fuzzers. The new harness onlyneeds
LIB_FUZZING_ENGINE(no libprotobuf-mutator), so its linkline is shorter than the existing one.
A small seed corpus is generated inline in
build.sh: three v1text inputs (TCP4, TCP6, UNKNOWN) and two v2 binary inputs (one
plain, one with an
alpn=h2TLV).Coverage
After 5 minutes of local fuzzing on the new harness (libFuzzer,
ASan, single core, with the seed corpus and dictionary above):
proxy_protocol_fuzzer