[fuzzing] execute every exported function (#3959)

- Enhance wasm mutator fuzz tests by adding export function execution and random value generation
- Use --fuel to limit  loop size
- Use predefined values and enhance argument logging in execution
This commit is contained in:
liang.he
2025-02-06 13:15:56 +08:00
committed by GitHub
parent 376385c608
commit c99ae24fb6
2 changed files with 147 additions and 2 deletions

View File

@ -41,7 +41,9 @@ function try_generate_wasm()
printf -- "-- output ${GENERATED_WASM_NAME} in %d retries\n" $try_i
}
WASM_SHAPE=" --allow-invalid-funcs true \
WASM_SHAPE=" --ensure-termination \
--export-everything true \
--fuel 7 \
--generate-custom-sections true \
--min-funcs 5 \
--max-instructions 1024 \