Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-124248: Fix crash in struct when processing 0p fields#124251
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM
63f1960 intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@brianschubert for the PR, and@vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…nGH-124251)(cherry picked from commit63f1960)Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
GH-124277 is a backport of this pull request to the3.13 branch. |
…nGH-124251)(cherry picked from commit63f1960)Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
GH-124278 is a backport of this pull request to the3.12 branch. |
Merged, thanks for the bug report and the fix! |
Fixesgh-124248.
Adds special handling for the case when
code->sizeis 0 before attempting to decrementcode->sizeor read the first byte underres.After this change,
0pshould behave like0s.