Skip to content

Fix doStoreLane falling through on OOB memory access#565

Open
sumleo wants to merge 1 commit intotitzer:masterfrom
sumleo:fix/store-lane-oob-fallthrough
Open

Fix doStoreLane falling through on OOB memory access#565
sumleo wants to merge 1 commit intotitzer:masterfrom
sumleo:fix/store-lane-oob-fallthrough

Conversation

@sumleo
Copy link
Contributor

@sumleo sumleo commented Feb 25, 2026

Summary

  • doStoreLane calls trap() on an out-of-bounds memory access but does not return, causing execution to fall through to a write using a null memory range.

Details

V3Interpreter.v3:1565 — the trap call is not wrapped in a return, so after trapping, the function continues and attempts to write through a null/invalid accessor result, causing a crash.

Fix: wrap the trap call with return void(trap(...)).

When the memory range check fails in doStoreLane, the function called
trap() but did not return, causing execution to fall through into the
lane extraction and write code with a null/invalid memory range.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant