Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test out-of-bounds element segment indexing for array.new_elem #563

Merged

Conversation

fitzgen
Copy link
Contributor

@fitzgen fitzgen commented Sep 28, 2024

Similar to #562 but for array.new_elem.

I opted to exercise both expression-style elements and the old MVP-style function-index elements, as they have slightly different representations in Wasmtime and that means we end up doing the indexing in two different code paths depending on which type of element segment we have. Figured that other engines might have similar code paths so it's good to test both.

Similar to WebAssembly#562 but for `array.new_elem`.

I opted to exercise both expression-style elements and the old MVP-style
function-index elements, as they have slightly different representations in
Wasmtime and that means we end up doing the indexing in two different code paths
depending on which type of element segment we have. Figured that other engines
might have similar code paths so it's good to test both.
@rossberg rossberg merged commit e878982 into WebAssembly:main Sep 29, 2024
1 check passed
@fitzgen fitzgen deleted the array-new-elem-out-of-bounds-tests branch September 29, 2024 16:33
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.

2 participants