Skip to content

Add whitespace rejection tests for bandwidth parser - #1291

Merged
oferchen merged 1 commit into
masterfrom
implement-rsync-3.4.1-features-in-rust
Oct 27, 2025
Merged

oferchen merged 1 commit into
masterfrom
implement-rsync-3.4.1-features-in-rust

Conversation

@oferchen

@oferchen oferchen commented Oct 27, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • add integration tests ensuring bandwidth argument and limit parsers reject surrounding or internal whitespace

Testing

  • cargo test -p rsync-bandwidth

@oferchen
oferchen merged commit 87d6a58 into master Oct 27, 2025
@oferchen
oferchen deleted the implement-rsync-3.4.1-features-in-rust branch October 27, 2025 20:23
oferchen added a commit that referenced this pull request May 14, 2026
Set up a cargo-fuzz scaffold at the repository root so contributors and
CI can fuzz the multiplex frame parser - the highest-level entry point
that consumes untrusted bytes from network peers. Coverage-guided
exploration will fan out across header validation, payload-length
checks, and message-code decoding without needing per-path harnesses.

The fuzz crate is excluded from the root workspace so libfuzzer-sys
does not leak into ordinary `cargo build` runs.

Refs #1195 #1291 #1293 #1304 #2103
oferchen added a commit that referenced this pull request May 16, 2026
Adds a cargo-fuzz target that builds a FilterSet from a randomised rule
chain, evaluates a candidate path against it, and compares the verdict
to the same rules and path given to a real upstream rsync binary in
--dry-run --recursive --verbose mode. Divergences and panics both fail
the input.

The harness is throughput-limited (200-500 exec/sec) because each input
spawns a child rsync process - documented inline. A companion script,
tools/ci/run_filter_fuzz.sh, wraps the target with binary discovery and
a configurable duration (default 60s smoke run, intended for hours-long
local soaks).
oferchen added a commit that referenced this pull request May 16, 2026
Adds a cargo-fuzz target that builds a FilterSet from a randomised rule
chain, evaluates a candidate path against it, and compares the verdict
to the same rules and path given to a real upstream rsync binary in
--dry-run --recursive --verbose mode. Divergences and panics both fail
the input.

The harness is throughput-limited (200-500 exec/sec) because each input
spawns a child rsync process - documented inline. A companion script,
tools/ci/run_filter_fuzz.sh, wraps the target with binary discovery and
a configurable duration (default 60s smoke run, intended for hours-long
local soaks).
oferchen added a commit that referenced this pull request May 16, 2026
Adds a cargo-fuzz target that builds a FilterSet from a randomised rule
chain, evaluates a candidate path against it, and compares the verdict
to the same rules and path given to a real upstream rsync binary in
--dry-run --recursive --verbose mode. Divergences and panics both fail
the input.

The harness is throughput-limited (200-500 exec/sec) because each input
spawns a child rsync process - documented inline. A companion script,
tools/ci/run_filter_fuzz.sh, wraps the target with binary discovery and
a configurable duration (default 60s smoke run, intended for hours-long
local soaks).
oferchen added a commit that referenced this pull request May 16, 2026
Adds a cargo-fuzz target that builds a FilterSet from a randomised rule
chain, evaluates a candidate path against it, and compares the verdict
to the same rules and path given to a real upstream rsync binary in
--dry-run --recursive --verbose mode. Divergences and panics both fail
the input.

The harness is throughput-limited (200-500 exec/sec) because each input
spawns a child rsync process - documented inline. A companion script,
tools/ci/run_filter_fuzz.sh, wraps the target with binary discovery and
a configurable duration (default 60s smoke run, intended for hours-long
local soaks).
oferchen added a commit that referenced this pull request May 16, 2026
Adds a cargo-fuzz target that builds a FilterSet from a randomised rule
chain, evaluates a candidate path against it, and compares the verdict
to the same rules and path given to a real upstream rsync binary in
--dry-run --recursive --verbose mode. Divergences and panics both fail
the input.

The harness is throughput-limited (200-500 exec/sec) because each input
spawns a child rsync process - documented inline. A companion script,
tools/ci/run_filter_fuzz.sh, wraps the target with binary discovery and
a configurable duration (default 60s smoke run, intended for hours-long
local soaks).
oferchen added a commit that referenced this pull request May 16, 2026
…4184)

Adds a cargo-fuzz target that builds a FilterSet from a randomised rule
chain, evaluates a candidate path against it, and compares the verdict
to the same rules and path given to a real upstream rsync binary in
--dry-run --recursive --verbose mode. Divergences and panics both fail
the input.

The harness is throughput-limited (200-500 exec/sec) because each input
spawns a child rsync process - documented inline. A companion script,
tools/ci/run_filter_fuzz.sh, wraps the target with binary discovery and
a configurable duration (default 60s smoke run, intended for hours-long
local soaks).
oferchen added a commit that referenced this pull request May 18, 2026
Set up a cargo-fuzz scaffold at the repository root so contributors and
CI can fuzz the multiplex frame parser - the highest-level entry point
that consumes untrusted bytes from network peers. Coverage-guided
exploration will fan out across header validation, payload-length
checks, and message-code decoding without needing per-path harnesses.

The fuzz crate is excluded from the root workspace so libfuzzer-sys
does not leak into ordinary `cargo build` runs.

Refs #1195 #1291 #1293 #1304 #2103
oferchen added a commit that referenced this pull request May 18, 2026
…4184)

Adds a cargo-fuzz target that builds a FilterSet from a randomised rule
chain, evaluates a candidate path against it, and compares the verdict
to the same rules and path given to a real upstream rsync binary in
--dry-run --recursive --verbose mode. Divergences and panics both fail
the input.

The harness is throughput-limited (200-500 exec/sec) because each input
spawns a child rsync process - documented inline. A companion script,
tools/ci/run_filter_fuzz.sh, wraps the target with binary discovery and
a configurable duration (default 60s smoke run, intended for hours-long
local soaks).
oferchen added a commit that referenced this pull request May 18, 2026
Set up a cargo-fuzz scaffold at the repository root so contributors and
CI can fuzz the multiplex frame parser - the highest-level entry point
that consumes untrusted bytes from network peers. Coverage-guided
exploration will fan out across header validation, payload-length
checks, and message-code decoding without needing per-path harnesses.

The fuzz crate is excluded from the root workspace so libfuzzer-sys
does not leak into ordinary `cargo build` runs.

Refs #1195 #1291 #1293 #1304 #2103
oferchen added a commit that referenced this pull request May 18, 2026
…4184)

Adds a cargo-fuzz target that builds a FilterSet from a randomised rule
chain, evaluates a candidate path against it, and compares the verdict
to the same rules and path given to a real upstream rsync binary in
--dry-run --recursive --verbose mode. Divergences and panics both fail
the input.

The harness is throughput-limited (200-500 exec/sec) because each input
spawns a child rsync process - documented inline. A companion script,
tools/ci/run_filter_fuzz.sh, wraps the target with binary discovery and
a configurable duration (default 60s smoke run, intended for hours-long
local soaks).
oferchen added a commit that referenced this pull request Aug 24, 2026
Set up a cargo-fuzz scaffold at the repository root so contributors and
CI can fuzz the multiplex frame parser - the highest-level entry point
that consumes untrusted bytes from network peers. Coverage-guided
exploration will fan out across header validation, payload-length
checks, and message-code decoding without needing per-path harnesses.

The fuzz crate is excluded from the root workspace so libfuzzer-sys
does not leak into ordinary `cargo build` runs.

Refs #1195 #1291 #1293 #1304 #2103
oferchen added a commit that referenced this pull request Aug 24, 2026
…4184)

Adds a cargo-fuzz target that builds a FilterSet from a randomised rule
chain, evaluates a candidate path against it, and compares the verdict
to the same rules and path given to a real upstream rsync binary in
--dry-run --recursive --verbose mode. Divergences and panics both fail
the input.

The harness is throughput-limited (200-500 exec/sec) because each input
spawns a child rsync process - documented inline. A companion script,
tools/ci/run_filter_fuzz.sh, wraps the target with binary discovery and
a configurable duration (default 60s smoke run, intended for hours-long
local soaks).
oferchen added a commit that referenced this pull request Aug 24, 2026
Set up a cargo-fuzz scaffold at the repository root so contributors and
CI can fuzz the multiplex frame parser - the highest-level entry point
that consumes untrusted bytes from network peers. Coverage-guided
exploration will fan out across header validation, payload-length
checks, and message-code decoding without needing per-path harnesses.

The fuzz crate is excluded from the root workspace so libfuzzer-sys
does not leak into ordinary `cargo build` runs.

Refs #1195 #1291 #1293 #1304 #2103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant