Skip to content

test(fuzz): --bwlimit CLI string fuzz target (FCV-15 #2442) - #4488

Merged
oferchen merged 2 commits into
masterfrom
test/fuzz-bwlimit
May 18, 2026
Merged

oferchen merged 2 commits into
masterfrom
test/fuzz-bwlimit

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Per FCV-3 audit (PR #4407) - bwlimit is CLI string parsing gap.

Summary

  • Adds fuzz/fuzz_targets/bwlimit.rs driving both parse_bandwidth_argument and parse_bandwidth_limit with arbitrary UTF-8 input so the suffix, fractional, exponent, adjustment, and RATE[:BURST] split branches are all exercised.
  • Registers the bwlimit binary in fuzz/Cargo.toml and pulls in the bandwidth crate with default-features = false (no new fuzz deps).
  • Seeds fuzz/corpus/bwlimit/ with 100k, 1.5m, 0, and 1g to anchor the suffix and unlimited branches.

Test plan

  • cd fuzz && cargo +nightly fuzz run bwlimit -- -runs=100000
  • CI fmt+clippy passes (no new clippy waivers, no production-code changes)

oferchen added 2 commits May 18, 2026 13:56
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
oferchen merged commit 9df708b into master May 18, 2026
2 checks passed
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
oferchen deleted the test/fuzz-bwlimit branch May 19, 2026 14:44
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.
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