Skip to content

Fix ordering of visit() in MemoryGrow interpretation #5108

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
Oct 3, 2022
Merged

Conversation

kripken
Copy link
Member

@kripken kripken commented Oct 3, 2022

This is a pretty subtle point that we all missed in #4811 - we need to first visit the
child, then compute the size, as the child may alter that size.

Found by the fuzzer.

@kripken kripken requested review from ashleynh and tlively October 3, 2022 17:12
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

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

Oh wow, that is subtle.

Copy link
Collaborator

@ashleynh ashleynh left a comment

Choose a reason for hiding this comment

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

Nice fix!

@kripken kripken merged commit d9a57f8 into main Oct 3, 2022
@kripken kripken deleted the fix.memory.grow branch October 3, 2022 19:41
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