Skip to content

Commit

Permalink
use --fuel to limit loop size
Browse files Browse the repository at this point in the history
  • Loading branch information
lum1n0us committed Dec 24, 2024
1 parent 9033d51 commit c4e6caa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/fuzz/wasm-mutator-fuzz/smith_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function try_generate_wasm()

WASM_SHAPE=" --ensure-termination \
--export-everything true \
--fuel 7 \
--generate-custom-sections true \
--min-funcs 5 \
--max-instructions 1024 \
Expand Down
2 changes: 1 addition & 1 deletion tests/fuzz/wasm-mutator-fuzz/wasm_mutator_fuzz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ execute_export_functions(wasm_module_t module, wasm_module_inst_t inst)
}
}

std::cout << ")";
std::cout << ")" << std::endl;
}

bool ret = wasm_runtime_call_wasm_a(exec_env, func, result_count,
Expand Down

0 comments on commit c4e6caa

Please sign in to comment.