postfix: add 6 fuzz harnesses#62
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
postfix-add-fuzz-harnesses
branch
from
May 14, 2026 14:58
4c55a1f to
6336c4c
Compare
tc-agent
force-pushed
the
postfix-add-fuzz-harnesses
branch
from
May 14, 2026 17:02
6336c4c to
261bc38
Compare
tc-agent
force-pushed
the
postfix-add-fuzz-harnesses
branch
from
May 16, 2026 08:57
261bc38 to
83a938b
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
postfix-add-fuzz-harnesses
branch
from
May 27, 2026 07:10
83a938b to
8bcaa0f
Compare
tc-agent
force-pushed
the
master
branch
4 times, most recently
from
May 27, 2026 13:02
baaf8ab to
b5fd10c
Compare
tc-agent
force-pushed
the
postfix-add-fuzz-harnesses
branch
from
May 27, 2026 22:36
8bcaa0f to
b1c7081
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.
Expands postfix fuzzing from 2 harnesses to 8, targeting more attacker-controlled parsers in libglobal/libutil.
Baseline
Fuzz Introspector — postfix reports 7.98% line coverage (943/11,824) over the existing `fuzz_tok822` (35.33%) and `fuzz_mime` (2.5%) harnesses.
New harnesses
`fuzz_mime` now feeds `mime_state_update` one record at a time (matching how `cleanup_message.c` drives it) instead of a single bulk call.
Layout reorganised so all harness `.c` files live under `harnesses/`. `build.sh` compiles every harness from there; the Dockerfile uses `COPY harnesses/ $SRC/harnesses/`.
A few harnesses set `var_drop_hdrs`, `var_double_bounce_sender`, `dict_allow_surrogate`, and `msg_error_limit` in `LLVMFuzzerInitialize` so calls that normally rely on `mail_conf_read()` don't `msg_panic` or `msg_fatal` on the first input.
Coverage report
Cold-start fuzzing (no seed corpus, libFuzzer generating from scratch) for 5 minutes wall-time per harness, all 9 concurrent, then a coverage build over the resulting corpus:
```
Global: lines 40.1% (5711/14230) branches ~37%
fuzz_tok822: lines 35.3% (772/2185)
fuzz_smtpd_token: lines 11.4% (202/1765)
fuzz_encode: lines 29.2% (611/2093)
fuzz_haproxy: lines 26.1% (822/3149)
fuzz_mime: lines 8.6% (975/11280)
fuzz_header: lines 12.4% (1427/11486)
fuzz_addr: lines 6.7% (738/10948)
fuzz_cidr: lines 25.9% (2179/8400)
fuzz_attr: lines 35.6% (1089/3063)
```
Global coverage rises from the Fuzz Introspector baseline of 7.98% to 40.1%. Per-harness denominators differ because each fuzzer links a different subset of libglobal/libutil; the absolute line-hit gain (943 → 5711) is the apples-to-apples comparison.