Stream: git-wasmtime

Topic: wasmtime / PR #12356 Fix off-by-one error in enum discrim...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 15 2026 at 02:54):

zzjas opened PR #12356 from zzjas:issue-12354 to bytecodealliance:main:

The discriminant check used i32.gt_u when it should use i32.ge_u. For an enum with N cases (valid discriminants 0 to N-1), a discriminant of exactly N was incorrectly accepted.

Closes #12354

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jan 15 2026 at 02:54):

zzjas requested wasmtime-core-reviewers for a review on PR #12356.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 15 2026 at 02:54):

zzjas requested dicej for a review on PR #12356.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 15 2026 at 04:32):

alexcrichton submitted PR review:

Thanks for this, and thanks for the test too!

view this post on Zulip Wasmtime GitHub notifications bot (Jan 15 2026 at 04:32):

alexcrichton added PR #12356 Fix off-by-one error in enum discriminant validation to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 15 2026 at 04:59):

alexcrichton merged PR #12356.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 15 2026 at 04:59):

alexcrichton removed PR #12356 Fix off-by-one error in enum discriminant validation from the merge queue.


Last updated: Jan 29 2026 at 13:25 UTC