Skip to content

gh-126240: handle NULL returned by _Py_asdl_expr_seq_new#126241

Merged
sobolevn merged 1 commit into
python:mainfrom
picnixz:fix/missing-null-checks-pegen-126240
Oct 31, 2024
Merged

gh-126240: handle NULL returned by _Py_asdl_expr_seq_new#126241
sobolevn merged 1 commit into
python:mainfrom
picnixz:fix/missing-null-checks-pegen-126240

Conversation

@picnixz

@picnixz picnixz commented Oct 31, 2024

Copy link
Copy Markdown
Member

I've checked other constructors _Py_asdl_*_seq_new but couldn't find occurrences of them not having some if (!res) check after the call. I don't think this warrants a NEWS entry so I'll add the skip news label for now.

@sobolevn sobolevn merged commit 94639f6 into python:main Oct 31, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @picnixz for the PR, and @sobolevn for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 31, 2024
…ythonGH-126241)

check return value of `_Py_asdl_expr_seq_new`
(cherry picked from commit 94639f6)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@miss-islington-app

Copy link
Copy Markdown

Sorry, @picnixz and @sobolevn, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 94639f6b7182c2e1a82f2f907b03b5b15202acfa 3.12

@picnixz picnixz deleted the fix/missing-null-checks-pegen-126240 branch October 31, 2024 14:24
@bedevere-app

bedevere-app Bot commented Oct 31, 2024

Copy link
Copy Markdown

GH-126243 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Oct 31, 2024
@picnixz

picnixz commented Oct 31, 2024

Copy link
Copy Markdown
Member Author

I'll take of the backport unless someone else wants to do it (just working on something else for a few minutes before coming back)

@sobolevn

Copy link
Copy Markdown
Member

@picnixz can you please do a manual backport to 3.12?

@picnixz

picnixz commented Oct 31, 2024

Copy link
Copy Markdown
Member Author

Sure!

@bedevere-app

bedevere-app Bot commented Oct 31, 2024

Copy link
Copy Markdown

GH-126245 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Oct 31, 2024
sobolevn pushed a commit that referenced this pull request Oct 31, 2024
…H-126241) (#126243)

gh-126240: handle `NULL` returned by  `_Py_asdl_expr_seq_new` (GH-126241)

check return value of `_Py_asdl_expr_seq_new`
(cherry picked from commit 94639f6)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
sobolevn pushed a commit that referenced this pull request Oct 31, 2024
…H-126241) (#126245)

gh-126240: handle `NULL` returned by  `_Py_asdl_expr_seq_new` (#126241)

check return value of `_Py_asdl_expr_seq_new`
picnixz added a commit to picnixz/cpython that referenced this pull request Dec 8, 2024
…ython#126241)

check return value of `_Py_asdl_expr_seq_new`
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants