-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
gh-124248: Fix crash in struct when processing 0p fields #124251
Conversation
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
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 commit 63f1960) Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
GH-124277 is a backport of this pull request to the 3.13 branch. |
…nGH-124251) (cherry picked from commit 63f1960) Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
GH-124278 is a backport of this pull request to the 3.12 branch. |
Merged, thanks for the bug report and the fix! |
Fixes gh-124248.
Adds special handling for the case when
code->size
is 0 before attempting to decrementcode->size
or read the first byte underres
.After this change,
0p
should behave like0s
.