DLR-FT/wasm-interpreter

Handling of invalid instructions during execution

Open

#86 opened on Sep 10, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (5 forks)auto 404
executionhelp wantedpriority-low

Repository metrics

Stars
 (37 stars)
PR merge metrics
 (PR metrics pending)

Description

Currently we skip invalid instructions in the main interpreter loop. Should we instead panic here to avoid possible misinterpretation of the following instructions? This could also be an issue for security.

https://github.com/DLR-FT/wasm-interpreter/blob/219d9336e117eb62fc954a21aeaad1e9c2c14193/src/execution/interpreter_loop.rs#L1406-L1408

Contributor guide