mirror of
https://github.com/facebook/zstd.git
synced 2025-08-07 06:23:00 +03:00
[fuzz] Generate seed data up to 256KB
This commit is contained in:
@@ -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)]
|
||||||
|
Reference in New Issue
Block a user