Skip to content

Commit c4e6caa

Browse files
committed
use --fuel to limit loop size
1 parent 9033d51 commit c4e6caa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/fuzz/wasm-mutator-fuzz/smith_wasm.sh

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function try_generate_wasm()
4343

4444
WASM_SHAPE=" --ensure-termination \
4545
--export-everything true \
46+
--fuel 7 \
4647
--generate-custom-sections true \
4748
--min-funcs 5 \
4849
--max-instructions 1024 \

tests/fuzz/wasm-mutator-fuzz/wasm_mutator_fuzz.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ execute_export_functions(wasm_module_t module, wasm_module_inst_t inst)
150150
}
151151
}
152152

153-
std::cout << ")";
153+
std::cout << ")" << std::endl;
154154
}
155155

156156
bool ret = wasm_runtime_call_wasm_a(exec_env, func, result_count,

0 commit comments

Comments
 (0)