Skip to content
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

Fix support of format units with the "e" prefix in nested tuples in PyArg_Parse #112438

Closed
serhiy-storchaka opened this issue Nov 27, 2023 · 0 comments
Assignees
Labels
3.11 only security fixes 3.12 bugs and security fixes 3.13 new features, bugs and security fixes topic-C-API type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Nov 27, 2023

Bug report

PyArg_Parse format units es, et, es#, and et# are not correctly supported in nested tuples. This is because the code for parsing nested tuples counts the number of alphabetical symbols to determine the number of items. But "e" is a prefix and should not be counted.

Linked PRs

@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error 3.11 only security fixes topic-C-API 3.12 bugs and security fixes 3.13 new features, bugs and security fixes labels Nov 27, 2023
@serhiy-storchaka serhiy-storchaka self-assigned this Nov 27, 2023
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Nov 27, 2023
ambv pushed a commit that referenced this issue Nov 27, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Nov 27, 2023
…ested tuples in PyArg_Parse (pythongh-112439)

(cherry picked from commit 4eea1e8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Nov 27, 2023
…ix in nested tuples in PyArg_Parse (pythongh-112439)

(cherry picked from commit 4eea1e8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this issue Nov 27, 2023
…nested tuples in PyArg_Parse (gh-112439) (GH-112460)

(cherry picked from commit 4eea1e8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this issue Nov 27, 2023
…nested tuples in PyArg_Parse (gh-112439) (GH-112461)

(cherry picked from commit 4eea1e8)
aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
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 bugs and security fixes 3.13 new features, bugs and security fixes topic-C-API type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant