Repository navigation
PyUnicode_DecodeUTF8Stateful() does not set *consumed for ASCII-only string #99612
Copy link
Copy link
Closed
Labels
3.10 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of liferelease-blockertopic-C-APItopic-unicodetype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error3.11only security fixesonly security fixes3.10 (EOL)end of lifeend of life3.12only security fixesonly security fixes
on Nov 20, 2022 - added a commit that references this issue
on Dec 1, 2022 - added a commit that references this issue
on Dec 1, 2022 1 remaining item
Since this is a bug in the C API, I consider it as a security level fix.
- added a commit that references this issue
on Jul 25, 2023 - removed3.11only security fixesonly security fixes3.12only security fixesonly security fixes
on Jul 26, 2023 - moved this from Todo to Done in Release and Deferred blockers 🚫
on Aug 23, 2023 - added a commit that references this issue
on Feb 20, 2024
Metadata
Metadata
Assignees
Labels
3.10 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of liferelease-blockertopic-C-APItopic-unicodetype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
- StatusShow more project fieldsDone
PyUnicode_DecodeUTF8Stateful()should save the number of successfully decoded bytes in*consumed. But if all bytes are in the ASCII range, it uses a fast path and does not set*consumed.It was found during writing coverage tests for Unicode C API (#99593).
Linked PRs