bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
15.43k stars 1.31k forks source link

Fix an off-by-one error in translating bounds checks #9621

Closed alexcrichton closed 3 days ago

alexcrichton commented 3 days ago

Unconditionally trapping accesses had an off-by-one introduced in #9576 which caused loads to produce a trap when they should succeed.