Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

gh-101046: Fix a potential memory leak in the parser when raising MemoryError#101051

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
pablogsal merged 2 commits intopython:mainfrompablogsal:gh-101046
Jan 16, 2023

Conversation

@pablogsal
Copy link
Member

@pablogsalpablogsal commentedJan 15, 2023
edited by bedevere-bot
Loading

"void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));"
)
self.out_of_memory_return(f"!_new_children")
self.out_of_memory_return(f"!new_children",cleanup_code="PyMem_Free(_children);")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
self.out_of_memory_return(f"!new_children",cleanup_code="PyMem_Free(_children);")
self.out_of_memory_return(f"!_new_children",cleanup_code="PyMem_Free(_children);")

Copy link
Member

@lysnikolaoulysnikolaou left a comment

Choose a reason for hiding this comment

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

LGTM!

@pablogsalpablogsal merged commit1de4395 intopython:mainJan 16, 2023
@pablogsalpablogsal deleted the gh-101046 branchJanuary 16, 2023 18:45
@miss-islington
Copy link
Contributor

Thanks@pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10, 3.11.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry,@pablogsal, I could not cleanly backport this to3.11 due to a conflict.
Please backport usingcherry_picker on command line.
cherry_picker 1de4395f62bb140563761ef5cbdf46accef3c550 3.11

@miss-islington
Copy link
Contributor

Sorry@pablogsal, I had trouble checking out the3.10 backport branch.
Please retry by removing and re-adding the "needs backport to 3.10" label.
Alternatively, you can backport usingcherry_picker on the command line.
cherry_picker 1de4395f62bb140563761ef5cbdf46accef3c550 3.10

@miss-islington
Copy link
Contributor

Sorry,@pablogsal, I could not cleanly backport this to3.9 due to a conflict.
Please backport usingcherry_picker on command line.
cherry_picker 1de4395f62bb140563761ef5cbdf46accef3c550 3.9

pablogsal added a commit to pablogsal/cpython that referenced this pull requestJan 16, 2023
…n raising MemoryError (pythonGH-101051).(cherry picked from commit1de4395)Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
@bedevere-bot
Copy link

GH-101085 is a backport of this pull request to the3.11 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.11only security fixes labelJan 16, 2023
pablogsal added a commit to pablogsal/cpython that referenced this pull requestJan 16, 2023
…n raising MemoryError (pythonGH-101051).(cherry picked from commit1de4395)Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
@bedevere-bot
Copy link

GH-101086 is a backport of this pull request to the3.10 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.10only security fixes labelJan 16, 2023
pablogsal added a commit that referenced this pull requestJan 16, 2023
…ing MemoryError (GH-101051). (#101086)Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
pablogsal added a commit that referenced this pull requestJan 16, 2023
…ing MemoryError (GH-101051) (#101085)Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
@hugovk
Copy link
Member

Sorry,@pablogsal, I could not cleanly backport this to3.9 due to a conflict. Please backport usingcherry_picker on command line.cherry_picker 1de4395f62bb140563761ef5cbdf46accef3c550 3.9

@pablogsal Does this still need backporting to 3.9? Otherwise let's remove the backport label.

pablogsal reacted with thumbs up emoji

@pablogsal
Copy link
MemberAuthor

Removed

hugovk reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@kumaraditya303kumaraditya303kumaraditya303 left review comments

@lysnikolaoulysnikolaoulysnikolaou approved these changes

Assignees

@pablogsalpablogsal

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@pablogsal@miss-islington@bedevere-bot@hugovk@lysnikolaou@kumaraditya303

[8]ページ先頭

©2009-2025 Movatter.jp