[wasmer all backends] index OOB panic in LocalBacking::generate_globals #979
Labels
bug
Something isn't working
🏆 fuzzer-trophy
Bugs found automatically by fuzzers.
📦 lib-deprecated
About the deprecated crates
Describe the bug
wasmer
panic with anindex out of bounds
errors whenimport_global_index
is greeter thanimports.globals
length.Issue seems to be there (line 453):
wasmer/lib/runtime-core/src/backing.rs
Lines 450 to 455 in 5582a89
Environment
commit: 5582a89
Steps to reproduce
Download: panic_index_oob_all_backends.zip
Run:
Expected behavior
wasmer
should check ifimport_global_index
is valid and through an error if not.Actual behavior
Following the output of wasmer compiled with cargo build --release --features backend-singlepass,backend-llvm,debug,trace:
Additional context
All backends are concerned.
The text was updated successfully, but these errors were encountered: