You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wasm-mutate panics when mutating invalid modules #2568
This is something we should probably return an error for or document explicitly, but for example:
$ wasm-tools mutate --seed 0 --reduce <<< "(module (global i32 (global.get 5)))"
thread 'main' (1242810) panicked at crates/wasm-mutate/src/mutators/modify_const_exprs.rs:99:77:
index out of bounds: the len is 1 but the index is 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: IOT instruction (core dumped) wasm-tools mutate --seed 0 --reduce <<< "(module (global i32 (global.get 5)))
or
$ wasm-tools mutate --seed 1 <<< "(module (func global.get 99))"
thread 'main' (1243187) panicked at crates/wasm-mutate/src/mutators/peephole/eggsy/analysis.rs:142:55:
index out of bounds: the len is 0 but the index is 99
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: IOT instruction (core dumped) wasm-tools mutate --seed 1 <<< "(module (func global.get 99))"
Activity