Skip to content

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
@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