A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Fix an off-by one assertion in Wasmtime (#13313)
Alex Crichton09351b3e13a8
diff --git a/crates/wasmtime/src/runtime/vm/traphandlers.rs b/crates/wasmtime/src/runtime/vm/traphandlers.rsindex 68a470afd8..cdda599401 100644--- a/crates/wasmtime/src/runtime/vm/traphandlers.rs+++ b/crates/wasmtime/src/runtime/vm/traphandlers.rs@@ -1325,7 +1325,7 @@ pub(crate) mod tls {/// we're leaving (e.g. allocated for a fiber).pub fn assert_current_state_not_in_range(range: core::ops::Range<usize>) {let p = raw::get() as usize;- assert!(p < range.start || range.end < p);+ assert!(!range.contains(&p));}}