X Tutup
The Wayback Machine - https://web.archive.org/web/20221223145816/https://github.com/python/cpython/pull/32129
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

bpo-47117: Don't crash if we fail to decode characters when the tokenizer buffers are uninitialized #32129

Merged
merged 2 commits into from Mar 26, 2022

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Mar 26, 2022

https://bugs.python.org/issue47117

Automerge-Triggered-By: GH:pablogsal

@pablogsal pablogsal requested a review from lysnikolaou as a code owner Mar 26, 2022
@pablogsal pablogsal added 🤖 automerge PR will be merged once it's been approved and all CI passed needs backport to 3.10 labels Mar 26, 2022
@pablogsal pablogsal requested a review from isidentical Mar 26, 2022
@pablogsal
Copy link
Member Author

pablogsal commented Mar 26, 2022

Testing this programatically is close to impossible :(

Copy link
Sponsor Member

@isidentical isidentical left a comment

I also tried to write a test, but no luck on reproducing the same behavior. The changes LGTM

Parser/pegen_errors.c Show resolved Hide resolved
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
@miss-islington
Copy link
Contributor

miss-islington commented Mar 26, 2022

@pablogsal: Status check is done, and it's a failure .

@miss-islington
Copy link
Contributor

miss-islington commented Mar 26, 2022

@pablogsal: Status check is done, and it's a success .

@miss-islington miss-islington merged commit 26cca80 into python:main Mar 26, 2022
12 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Mar 26, 2022

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

@miss-islington
Copy link
Contributor

miss-islington commented Mar 26, 2022

Sorry, @pablogsal, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 26cca8067bf5306e372c0e90036d832c5021fd90 3.10

@miss-islington miss-islington self-assigned this Mar 26, 2022
@bedevere-bot
Copy link

bedevere-bot commented Mar 26, 2022

GH-32130 is a backport of this pull request to the 3.10 branch.

pablogsal added a commit to pablogsal/cpython that referenced this pull request Mar 26, 2022
…e tokenizer buffers are uninitialized (pythonGH-32129)

Automerge-Triggered-By: GH:pablogsal.
(cherry picked from commit 26cca80)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
pablogsal added a commit that referenced this pull request Mar 26, 2022
…e tokenizer buffers are uninitialized (GH-32129) (GH-32130)

Automerge-Triggered-By: GH:pablogsal.
(cherry picked from commit 26cca80)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 automerge PR will be merged once it's been approved and all CI passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants
X Tutup