Skip to content

[test] Add negative test for invalid section ordering #1775

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 12, 2024
Merged

[test] Add negative test for invalid section ordering #1775

merged 1 commit into from
Aug 12, 2024

Conversation

dzfrias
Copy link
Contributor

@dzfrias dzfrias commented Aug 7, 2024

As far as I know, there are no tests that suggest the correct order of sections. Binary modules with out-of-order sections are not failing in the Ladybird WebAssembly implementation, LibWasm.

Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, definitely good to test this! Can I motivate you to add versions for other section pairs as well? It should be enough to test consecutive pairs.

@dzfrias
Copy link
Contributor Author

dzfrias commented Aug 9, 2024

Ok, I added tests for all of the consecutive section pairs!

dzfrias added a commit to dzfrias/ladybird that referenced this pull request 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.
dzfrias added a commit to dzfrias/ladybird that referenced this pull request 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.
awesomekling pushed a commit to LadybirdBrowser/ladybird that referenced this pull request 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.
Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

(FYI, please never force-push to branches under review, since that breaks GH's review work-flow. Didn't matter much for this small PR, but would for more complex ones.)

@rossberg rossberg merged commit bbe955d into WebAssembly:main Aug 12, 2024
1 check passed
@dzfrias dzfrias deleted the section-order branch August 12, 2024 23:11
@dzfrias
Copy link
Contributor Author

dzfrias commented Aug 12, 2024

Ok, good to know for next time!

nico pushed a commit to nico/serenity that referenced this pull request Nov 9, 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.

(cherry picked from commit c586653)
nico pushed a commit to nico/serenity that referenced this pull request Nov 9, 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.

(cherry picked from commit c586653)
nico pushed a commit to nico/serenity that referenced this pull request Nov 9, 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.

(cherry picked from commit c586653)
nico pushed a commit to nico/serenity that referenced this pull request Nov 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.

(cherry picked from commit c586653)
nico pushed a commit to nico/serenity that referenced this pull request Nov 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.

(cherry picked from commit c586653)
nico pushed a commit to SerenityOS/serenity that referenced this pull request Nov 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.

(cherry picked from commit c586653)
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