Stream: git-wasmtime

Topic: wasmtime / PR #12678 Fix off-by-one in assert_no_overlap ...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 26 2026 at 01:42):

sumleo requested fitzgen for a review on PR #12678.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 26 2026 at 01:42):

sumleo opened PR #12678 from sumleo:fix/assert-no-overlap-off-by-one to bytecodealliance:main:

Summary

Details

The assert_no_overlap function in component model string transcoding used strict
less-than (<) to compare region boundaries. When two memory regions are adjacent
(e.g., region A ends at address 100, region B starts at address 100), the strict
comparison incorrectly identified them as overlapping, causing a panic.

The fix changes both boundary checks from < to <=, correctly allowing adjacent
non-overlapping regions while still detecting actual overlaps.

Test plan

view this post on Zulip Wasmtime GitHub notifications bot (Feb 26 2026 at 01:42):

sumleo requested wasmtime-core-reviewers for a review on PR #12678.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 26 2026 at 03:33):

github-actions[bot] added the label wasmtime:api on PR #12678.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 26 2026 at 15:50):

alexcrichton submitted PR review:

Is this something that you encountered in practice? This looks like it was LLM-discovered and LLM-authored otherwise, and I'm not aware of a way for this to actually ever be a problem in practice. This seems reasonable to me to fix but I would say that the tests can be dropped here given the non-load-bearing nature of this function.


Last updated: Mar 23 2026 at 16:19 UTC