gear-tech/gear

Make it able to define `wasm-gen` config in `runtime-fuzzer` from caller side (i.e., fuzz target)

Opened this issue · 1 comments

File Location(s)

No response

Proposal

Currently runtime_fuzzer::generator::upload_program uses config function with a "static" generation of the config for wasm-gen. So there's no possibility to set a custom config for any test/caller of the functionality in runtime-fuzzer. This has to be changed to give more flexibility.

Also apply this into implementing a test for the crash input b09f6282c0e906c06168e7fc22fb5417c3f6fafb-pr-3496-gas5k-delay10k. Define a syscalls params config for it such that gas is set to 5k and messages delay is set to 10k.