diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-11-08 20:33:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 20:33:21 (GMT) |
commit | 4f31171e3fcef0a81b3d9186b28cd0596aaff771 (patch) | |
tree | ef12b2db4f70ffdbb504bd765fd0fc7a5d4c1539 /Python/pymath.c | |
parent | ca944628acd83243f1511d118d39091dae82224f (diff) | |
download | cpython-4f31171e3fcef0a81b3d9186b28cd0596aaff771.zip cpython-4f31171e3fcef0a81b3d9186b28cd0596aaff771.tar.gz cpython-4f31171e3fcef0a81b3d9186b28cd0596aaff771.tar.bz2 |
gh-99248: [Enum] fix negative number infinite loop (GH-99256)
[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 0b4ffb08ccdc21fc07ce90d3f78b58a25e1af653)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Diffstat (limited to 'Python/pymath.c')
0 files changed, 0 insertions, 0 deletions