1
0
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:
Nick Terrell
2019-09-12 15:02:01 -07:00
parent 8c1b6f74dd
commit 7c4578160e

View File

@@ -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)]