Skip to content

LibWasm: Ensure correct section ordering when parsing binary modules #1022

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 1 commit into from
Aug 10, 2024

Conversation

dzfrias
Copy link
Contributor

@dzfrias dzfrias commented Aug 10, 2024

There are (currently) no spec-tests ensuring that section ordering is enforced, but it is a part of the spec. A pull request to add this to the specification testsuite has been opened at WebAssembly/spec#1775.

There are (currently) no spec-tests ensuring that section ordering is
enforced, but it _is_ a part of the spec. A pull request to add this to
the specification testsuite has been opened at WebAssembly/spec#1775.
@dzfrias dzfrias requested a review from alimpfard as a code owner August 10, 2024 00:21
@alimpfard
Copy link
Contributor

Nice, thanks for the spec tests as well!

@dzfrias
Copy link
Contributor Author

dzfrias commented Aug 10, 2024

@alimpfard I just realized that this PR might have a bug. Is ordering automatically derived in an enum class?

@dzfrias
Copy link
Contributor Author

dzfrias commented Aug 10, 2024

I've tested manually that this PR works on my machine, but I'm not sure if it the automatic derivation is standardized across GNU and clang.

@alimpfard
Copy link
Contributor

Is ordering automatically derived in an enum class?

Yes, values are automatically assigned starting from zero.

@dzfrias
Copy link
Contributor Author

dzfrias commented Aug 10, 2024

Ok, thanks for letting me know.

@awesomekling awesomekling merged commit c586653 into LadybirdBrowser:master Aug 10, 2024
6 checks passed
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