Stream: git-wasmtime

Topic: wasmtime / PR #12066 Fix discriminant size of enums/variants


view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2025 at 15:53):

alexcrichton opened PR #12066 from alexcrichton:fix-discrim-size to bytecodealliance:main:

This fixes an off-by-one-error that's been present for lifting/lowering enums/variants for... forever I think? This means that precisely 256-variant-enums and 65536-variant-enums have been incorrectly loaded from memory historically (or stored). Discovered via the new fuzz target for roundtripping values and I expect the practical impact of this bugfix to be negligible.

<!--
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 (Nov 21 2025 at 15:53):

alexcrichton requested fitzgen for a review on PR #12066.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2025 at 15:53):

alexcrichton requested wasmtime-core-reviewers for a review on PR #12066.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2025 at 16:12):

alexcrichton updated PR #12066.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2025 at 17:05):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2025 at 18:34):

alexcrichton updated PR #12066.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2025 at 18:34):

alexcrichton has enabled auto merge for PR #12066.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2025 at 19:11):

alexcrichton merged PR #12066.


Last updated: Dec 06 2025 at 07:03 UTC