Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(#6639): fix stack-use-after-scope on windows - #6643

#6643
Merged
kripken merged 1 commit into
WebAssembly:mainWebAssembly/binaryen:mainfrom
mtb0x1:UNREACHABLE_6639Copy head branch name to clipboard
Jun 5, 2024
Merged

fix(#6639): fix stack-use-after-scope on windows#6643
kripken merged 1 commit into
WebAssembly:mainWebAssembly/binaryen:mainfrom
mtb0x1:UNREACHABLE_6639Copy head branch name to clipboard

Conversation

@mtb0x1

@mtb0x1 mtb0x1 commented Jun 4, 2024

Copy link
Copy Markdown
Contributor

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.

@kripken kripken left a comment

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.