]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-99613...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 22 Aug 2023 18:24:40 +0000 (11:24 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 18:24:40 +0000 (20:24 +0200)
commit1c937e58873a4d07d9c94f3f28cd4733f62dc8ab
tree5dca8c3c1c2474b84dfe5534a9d375b4c76aa16d
parent37d7180cb647f0bed0c1caab0037f3bc82e2af96
[3.10] gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-99613) (GH-107224) (#107230)

Previously *consumed was not set in this case.

(cherry picked from commit b8b3e6afc0a48c3cbb7c36d2f73e332edcd6058c)
(cherry picked from commit f08e52ccb027f6f703302b8c1a82db9fd3934270)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_capi/test_codecs.py [new file with mode: 0644]
Misc/NEWS.d/next/C API/2022-11-20-09-52-50.gh-issue-99612.eBHksg.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Objects/unicodeobject.c