You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PyUnicode_DecodeUTF8Stateful() does not set *consumed for ASCII-only string #99612
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).
Activity
pythongh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data
gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-…
Merge branch 'main' into fixinspect
[3.11] pythongh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-o…
1 remaining item
serhiy-storchaka commentedon Jul 25, 2023
Since this is a bug in the C API, I consider it as a security level fix.
[3.11] gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only da…
[3.11] pythongh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-o…
[3.9] [3.11] pythongh-99612: Fix PyUnicode_DecodeUTF8Stateful() for A…
[3.10] gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only da…
[3.9] gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (
serhiy-storchaka commentedon Aug 23, 2023
3.8 is not affected. The bug was introduced in 770847a (#81529).
[3.9] pythongh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-on…
py-cbor2: updated to 5.6.2