Skip to content

Commit

Permalink
Limit number of functions in fuzzing.
Browse files Browse the repository at this point in the history
  • Loading branch information
schungx committed Jan 31, 2024
1 parent 11e9cc7 commit 8cad8c5
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 8cad8c5

Please sign in to comment.