Skip to content

[3.13] gh-71810: Fix _PyLong_AsByteArray() undefined behavior (GH-138873) - #138884

Merged
vstinner merged 1 commit into
python:3.13from
miss-islington:backport-8b5ce31-3.13
Sep 14, 2025
Merged

vstinner merged 1 commit into
python:3.13from
miss-islington:backport-8b5ce31-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 14, 2025 •

Copy link
Copy Markdown
Contributor

Don't read p[-1] when p is an empty string: when n==0.
(cherry picked from commit 8b5ce31)

Co-authored-by: Victor Stinner vstinner@python.org

…H-138873)

Don't read p[-1] when p is an empty string: when n==0.
(cherry picked from commit 8b5ce31)

Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants