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

LibWasm: Reject indirect calls to external function references #1803

Merged

Conversation

ADKaster
Copy link
Member

This fixes a test in the WebAssembly spec test suite that was added in WebAssembly/spec@924c1f8

This fixes a test in the WebAssembly spec test suite that was
added in WebAssembly/spec@924c1f8
@ADKaster
Copy link
Member Author

These seems to be the correct fix, as far as I can tell.

https://webassembly.github.io/spec/core/valid/instructions.html#xref-syntax-instructions-syntax-instr-control-mathsf-call-indirect-x-y

says:

image

But we were checking if it was a function ref or an extern ref. (is_reference)

@ADKaster
Copy link
Member Author

Gonna :marge: since this makes CI green

@ADKaster ADKaster merged commit a3157c8 into LadybirdBrowser:master Oct 15, 2024
6 checks passed
@ADKaster ADKaster deleted the wasm-validate-indirect-call-extern branch October 15, 2024 00:14
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