mirror of
https://github.com/facebook/zstd.git
synced 2025-11-27 00:05:09 -05:00
[fuzz] Generate seed data up to 256KB
This commit is contained in:
parent
8c1b6f74dd
commit
7c4578160e
@ -660,7 +660,7 @@ def gen_parser(args):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--max-size-log',
|
'--max-size-log',
|
||||||
type=int,
|
type=int,
|
||||||
default=13,
|
default=18,
|
||||||
help='Maximum sample size to generate')
|
help='Maximum sample size to generate')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--seed',
|
'--seed',
|
||||||
@ -720,7 +720,7 @@ def gen(args):
|
|||||||
if info.frame_type == FrameType.BLOCK:
|
if info.frame_type == FrameType.BLOCK:
|
||||||
cmd += [
|
cmd += [
|
||||||
'--gen-blocks',
|
'--gen-blocks',
|
||||||
'--max-block-size-log={}'.format(args.max_size_log)
|
'--max-block-size-log={}'.format(min(args.max_size_log, 17))
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
cmd += ['--max-content-size-log={}'.format(args.max_size_log)]
|
cmd += ['--max-content-size-log={}'.format(args.max_size_log)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user