Stream: git-wasmtime

Topic: wasmtime / PR #5650 Fix an assertion failure with an empt...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2023 at 01:01):

elliottt opened PR #5650 from trevor/fix-switch-underflow to main:

Fix an error introduced in #5644, where an unsigned subtraction from zero was possible with an empty Switch structure.
<!--

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 (Jan 28 2023 at 01:01):

elliottt requested jameysharp for a review on PR #5650.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2023 at 01:05):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2023 at 01:09):

elliottt updated PR #5650 from trevor/fix-switch-underflow to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2023 at 01:12):

elliottt edited PR #5650 from trevor/fix-switch-underflow to main:

Fix an error introduced in #5644, where an unsigned subtraction from zero was possible with an empty Switch structure. Additionally, missing the empty case caused us to not emit a branch to the default block. This PR fixes the issue by detecting the empty Switch case early, and emitting a jump. It also adds a test to ensure that this behavior stays consistent.
<!--

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 (Jan 28 2023 at 01:13):

elliottt updated PR #5650 from trevor/fix-switch-underflow to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2023 at 01:14):

elliottt edited PR #5650 from trevor/fix-switch-underflow to main:

Fix an error introduced in #5644, where an unsigned subtraction from zero was possible with an empty Switch structure. Additionally, missing the empty case caused us to not emit a branch to the default block. This PR fixes the issue by detecting the empty Switch case early, and emitting a jump.
<!--

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 (Jan 28 2023 at 01:14):

elliottt has enabled auto merge for PR #5650.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2023 at 01:46):

elliottt merged PR #5650.


Last updated: Nov 22 2024 at 16:03 UTC