mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-09-14 22:28:57 -04:00
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.
10 lines
318 B
Python
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")
|