FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-99248: [Enum] fix negative number infinite loop by ethanfurman · Pull Request #99256 · python/cpython · GitHub

Repository navigation

gh-99248: [Enum] fix negative number infinite loop - #99256

Merged
ethanfurman merged 2 commits into
python:mainfrom
ethanfurman:enum-negative_verify
Nov 8, 2022
Merged

ethanfurman merged 2 commits into
python:mainfrom
ethanfurman:enum-negative_verify

Conversation

ethanfurman commented Nov 8, 2022 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member
  • _iter_bits_lsb() now raises a ValueError if a negative number is passed in

  • verify() now skips checking negative numbers for named flags

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

- verify() now skips checking negative numbers for named flags
ethanfurman added type-bug An unexpected behavior, bug, or error stdlib Standard Library Python modules in the Lib/ directory 3.11 only security fixes 3.12 only security fixes needs backport to 3.11 only security fixes labels Nov 8, 2022
ethanfurman self-assigned this Nov 8, 2022
ethanfurman merged commit 0b4ffb0 into python:main Nov 8, 2022

Copy link
Copy Markdown
Contributor

Thanks @ethanfurman for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request 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>

Copy link
Copy Markdown

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

bedevere-bot removed the needs backport to 3.11 only security fixes label Nov 8, 2022
miss-islington added a commit that referenced this pull request 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>
ethanfurman deleted the enum-negative_verify branch November 8, 2022 20:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.11 only security fixes 3.12 only security fixes stdlib Standard Library Python modules in the Lib/ directory type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL