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 names_typeparam to prevent access to an AST node that was just replaced #4360

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

dipinhora
Copy link
Contributor

This was flagged by either the memory sanitizer or the undefined behavior sanitizer.

Prior to this commit, the AST node is replaced and then the call to ast_get tries to access the old node that has already been freed.

This commit ensures that the call to ast_get will correctly access the newly AST node.

…replaced

This was flagged by either the memory sanitizer or the undefined behavior
sanitizer.

Prior to this commit, the AST node is replaced and then the call to `ast_get`
tries to access the old node that has already been freed.

This commit ensures that the call to `ast_get` will correctly access the
newly AST node.
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Jul 6, 2023
@SeanTAllen SeanTAllen merged commit 8f2e7b6 into ponylang:main Jul 7, 2023
19 of 20 checks passed
@ponylang-main ponylang-main added discuss during sync Should be discussed during an upcoming sync and removed discuss during sync Should be discussed during an upcoming sync labels Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss during sync Should be discussed during an upcoming sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants