Skip to content

Validate function imports #6315

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

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Conversation

kripken
Copy link
Member

@kripken kripken commented Feb 15, 2024

We validate functions in parallel, but function-parallel passes do not run on imports,
so we did not issue a validation error on an import using a disallowed type, for example.

All the changes in visitFunction are just to group all the parts using body to the
end, and putting them behind a check for body.

(diff without whitespace is smaller)

Found using #6310 #6312

@kripken kripken requested review from tlively and aheejin February 15, 2024 17:47
@tlively
Copy link
Member

tlively commented Feb 16, 2024

function-parallel passes do not run on imports

I wonder where else we are messing this up...

@kripken kripken merged commit 4031538 into WebAssembly:main Feb 20, 2024
@kripken kripken deleted the validate.imports branch February 20, 2024 23:21
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
We validate functions in parallel, but function-parallel passes do not run on imports,
so we did not issue a validation error on an import using a disallowed type, for example.

All the changes in visitFunction are just to group all the parts using body to the
end, and putting them behind a check for body.
@gkdn gkdn mentioned this pull request Aug 31, 2024
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.

3 participants