Skip to content

fix the long64 reader in umarshal.py #107828

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

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

martindemello
Copy link
Contributor

trivial fix to a code path that I guess was never really hit.

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

Good catch! 🤦‍♂️

Thank you for your contribution @martindemello.

@miss-islington
Copy link
Contributor

Thanks @martindemello for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@bedevere-bot
Copy link

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

@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Aug 10, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 10, 2023
(cherry picked from commit 50bbc56)

Co-authored-by: Martin DeMello <[email protected]>
@bedevere-bot
Copy link

GH-107850 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Aug 10, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 10, 2023
(cherry picked from commit 50bbc56)

Co-authored-by: Martin DeMello <[email protected]>
@serhiy-storchaka
Copy link
Member

Note that this code could be simpler and more efficient using int.from_bytes() or struct.unpack(), but that's another issue.

@martindemello martindemello deleted the martindemello-patch-1 branch August 10, 2023 20:52
serhiy-storchaka pushed a commit that referenced this pull request Aug 10, 2023
(cherry picked from commit 50bbc56)

Co-authored-by: Martin DeMello <[email protected]>
Yhg1s pushed a commit that referenced this pull request Aug 11, 2023
Fix the long64 reader in umarshal.py (GH-107828)
(cherry picked from commit 50bbc56)

Co-authored-by: Martin DeMello <[email protected]>
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.

4 participants