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

Fix validation edge case when function end code is missing #324

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matetokodi
Copy link
Contributor

In some cases m_resumeGenerateByteCodeAfterNBlockEnd could be non-zero when the preprocessing is finished on invalid wasm code.

Copy link
Collaborator

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM with minor changes

"\0b" ;; end
)
"function body must end with END opcode"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Newline missing

@@ -0,0 +1,28 @@
(assert_invalid
(module binary
"\00\61\73\6d\01\00\00\00"
Copy link
Collaborator

Choose a reason for hiding this comment

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

The spec-core tests use ascii characters here.

@zherczeg
Copy link
Collaborator

ARM64 compiler randomly crashes, I don't know the reason. If you repush the patch, it will eventually fix.

In some cases `m_resumeGenerateByteCodeAfterNBlockEnd` could be non-zero
when the preprocessing is finished on invalid wasm code.

Signed-off-by: Máté Tokodi [email protected]
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