Stream: git-wasmtime

Topic: wasmtime / PR #3462 Fix an off-by-two condition in heap l...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2021 at 16:53):

alexcrichton opened PR #3462 from fix-fuzz-bug to main:

This commit fixes an issue in Cranelift where legalization of
heap_addr instructions (used by wasm to represent heap accesses) could
be off-by-two where loads that should be valid were actually treated as
invalid. The bug here happened in an optimization where tests against
odd constants were being altered to tests against even constants by
subtracting one from the limit instead of adding one to the limit. The
comment around this area has been updated in accordance with a little
more math-stuff as well to help future readers.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2021 at 16:55):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2021 at 18:19):

alexcrichton merged PR #3462.


Last updated: Dec 23 2024 at 12:05 UTC