A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Add a case for wasmi trap code on error (#11984)
Alex Crichtonb900d7460e03
diff --git a/crates/fuzzing/src/oracles/diff_wasmi.rs b/crates/fuzzing/src/oracles/diff_wasmi.rsindex a34ede0136..fed0330419 100644--- a/crates/fuzzing/src/oracles/diff_wasmi.rs+++ b/crates/fuzzing/src/oracles/diff_wasmi.rs@@ -54,6 +54,9 @@ impl WasmiEngine {wasmi::errors::ErrorKind::Memory(wasmi::errors::MemoryError::OutOfBoundsAccess) => {Some(wasmi::core::TrapCode::MemoryOutOfBounds)}+ wasmi::errors::ErrorKind::Table(wasmi::errors::TableError::CopyOutOfBounds) => {+ Some(wasmi::core::TrapCode::TableOutOfBounds)+ }_ => {log::trace!("unknown wasmi error: {:?}", err.kind());None