Files
rsync/testsuite/max-alloc-zero-rejected_test.py
Andrew Tridgell 72098206ce testsuite: daemon protocol robustness against malicious peers
The malformed-peer fuzz/crash regression tests: io flood/argv, proto cleared-flist/
ndx/hlink/selftest, match nullmap, max-alloc / size-arg / argv limits, sum-blocklen,
nested-socket specials, malicious-sender delete scope, xattr-wire-cap.
2026-07-20 14:05:31 +10:00

10 lines
318 B
Python

#!/usr/bin/env python3
from rsyncfns import SCRATCHDIR, rsync_argv
from rsyncfns import expect_fail
expect_fail(
rsync_argv('--max-alloc=0', str(SCRATCHDIR / 'missing-src'), str(SCRATCHDIR / 'missing-dst')),
'max-alloc must be greater than zero',
)
print("max-alloc-zero-rejected: --max-alloc=0 is rejected")