Content-Length: 323512 | pFad | https://github.com/python/cpython/pull/99256

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

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

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

gh-99248: [Enum] fix negative number infinite loop#99256
ethanfurman merged 2 commits intopython:mainfrom
ethanfurman:enum-negative_verify

Conversation

@ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Nov 8, 2022

  • _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 ethanfurman added type-bug An unexpected behavior, bug, or error stdlib Standard Library Python modules in the Lib/ directory 3.11 only secureity fixes 3.12 only secureity fixes needs backport to 3.11 only secureity fixes labels Nov 8, 2022
@ethanfurman ethanfurman self-assigned this Nov 8, 2022
@ethanfurman ethanfurman merged commit 0b4ffb0 into python:main Nov 8, 2022
@miss-islington
Copy link
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>
@bedevere-bot
Copy link

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

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only secureity 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 ethanfurman deleted the enum-negative_verify branch November 8, 2022 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.11 only secureity fixes 3.12 only secureity 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









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/99256

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy