8000 [3.11] gh-99248: [Enum] fix negative number infinite loop (GH-99256) by miss-islington · Pull Request #99259 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-99248: [Enum] fix negative number infinite loop (GH-99256) #99259

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
Nov 8, 2022

Conversation

miss-islington
Copy link
Contributor
@miss-islington miss-islington commented Nov 8, 2022

[Enum] fix negative number infinite loop

  • _iter_bits_lsb() now raises a ValueError if a negative number
    is passed in

  • verify() now skips checking negative numbers for named flags
    (cherry picked from commit 0b4ffb0)

Co-authored-by: Ethan Furman ethan@stoneleaf.us

)

[Enum] fix negative number infinite loop

- _iter_bits_lsb() now raises a ValueError if a negative number
  is passed in

- verify() now skips checking negative numbers for named flags
(cherry picked from commit 0b4ffb0)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
@miss-islington
Copy link
Contributor Author

Sorry, I can't merge this PR. Reason: 6 of 9 required status checks are expected..

@miss-islington miss-islington merged commit 4f31171 into python:3.11 Nov 8, 2022
@miss-islington miss-islington deleted the backport-0b4ffb0-3.11 branch November 8, 2022 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0