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(#6639): fix stack-use-after-scope on windows #6643

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

mtb0x1
Copy link
Contributor

@mtb0x1 mtb0x1 commented Jun 4, 2024

This PR addresses #6639, moving ChildIterator(stack[index - 1]) into a local variable to avoid use after free.
Tested manually on Windows and Linux, same result as expected.

create a tmp var to store the childiterator to avoid use of free.
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Thanks!

@kripken kripken enabled auto-merge (squash) June 5, 2024 00:01
@kripken kripken merged commit 76d1ac3 into WebAssembly:main Jun 5, 2024
13 checks passed
@mtb0x1 mtb0x1 deleted the UNREACHABLE_6639 branch June 5, 2024 08:54
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jun 5, 2024
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
@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.

2 participants