Skip to content

Commit

Permalink
Merge pull request #826 from schungx/master
Browse files Browse the repository at this point in the history
Limit number of functions in fuzzing.
  • Loading branch information
schungx authored Jan 31, 2024
2 parents 5b83d9c + 8cad8c5 commit f97fbcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fuzz/fuzz_targets/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ fn fuzz(ctx: Ctx) -> Result<()> {
engine.set_max_array_size(500);
engine.set_max_map_size(500);
engine.set_max_variables(1000);
engine.set_max_modules(1000);
engine.set_max_functions(100);
engine.set_max_modules(100);
engine.set_max_call_levels(10);
engine.set_max_expr_depths(50, 5);
engine.set_optimization_level(ctx.optimization_level);
Expand Down
3 changes: 2 additions & 1 deletion fuzz/fuzz_targets/scripting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ fuzz_target!(|ctx: Ctx| {
engine.set_max_array_size(500);
engine.set_max_map_size(500);
engine.set_max_variables(1000);
engine.set_max_modules(1000);
engine.set_max_functions(100);
engine.set_max_modules(100);
engine.set_max_call_levels(10);
engine.set_max_expr_depths(50, 5);
engine.set_optimization_level(ctx.optimization_level);
Expand Down

0 comments on commit f97fbcb

Please sign in to comment.