Repository navigation
test(fuzz): --bwlimit CLI string fuzz target (FCV-15 #2442) - #4488
Merged
Merged
Conversation
Adds a libfuzzer target driving `parse_bandwidth_argument` and `parse_bandwidth_limit` with arbitrary UTF-8 input, covering the RATE[:BURST] CLI string surface flagged by FCV-15. Seeds the corpus with `100k`, `1.5m`, `0`, and `1g` to anchor the suffix and unlimited branches.
# Conflicts: # fuzz/Cargo.toml
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds a libfuzzer target driving `parse_bandwidth_argument` and `parse_bandwidth_limit` with arbitrary UTF-8 input, covering the RATE[:BURST] CLI string surface flagged by FCV-15. Seeds the corpus with `100k`, `1.5m`, `0`, and `1g` to anchor the suffix and unlimited branches.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds a libfuzzer target driving `parse_bandwidth_argument` and `parse_bandwidth_limit` with arbitrary UTF-8 input, covering the RATE[:BURST] CLI string surface flagged by FCV-15. Seeds the corpus with `100k`, `1.5m`, `0`, and `1g` to anchor the suffix and unlimited branches.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Adds a libfuzzer target driving `parse_bandwidth_argument` and `parse_bandwidth_limit` with arbitrary UTF-8 input, covering the RATE[:BURST] CLI string surface flagged by FCV-15. Seeds the corpus with `100k`, `1.5m`, `0`, and `1g` to anchor the suffix and unlimited branches.
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.
Per FCV-3 audit (PR #4407) - bwlimit is CLI string parsing gap.
Summary
fuzz/fuzz_targets/bwlimit.rsdriving bothparse_bandwidth_argumentandparse_bandwidth_limitwith arbitrary UTF-8 input so the suffix, fractional, exponent, adjustment, andRATE[:BURST]split branches are all exercised.bwlimitbinary infuzz/Cargo.tomland pulls in thebandwidthcrate withdefault-features = false(no new fuzz deps).fuzz/corpus/bwlimit/with100k,1.5m,0, and1gto anchor the suffix and unlimited branches.Test plan
cd fuzz && cargo +nightly fuzz run bwlimit -- -runs=100000