diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-09-07 21:49:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 21:49:17 (GMT) |
commit | ffafa9b91da8731d21958209dd1478f48eaa2d09 (patch) | |
tree | 91145f611b810169911fa11620ebd838532f2484 /Python/Python-ast.c | |
parent | 9fa21d050abf5ba2b39762e320cb6e6bb8b905c2 (diff) | |
download | cpython-ffafa9b91da8731d21958209dd1478f48eaa2d09.zip cpython-ffafa9b91da8731d21958209dd1478f48eaa2d09.tar.gz cpython-ffafa9b91da8731d21958209dd1478f48eaa2d09.tar.bz2 |
gh-96268: Fix loading invalid UTF-8 (GH-96270)
This makes tokenizer.c:valid_utf8 match stringlib/codecs.h:decode_utf8.
It also fixes an off-by-one error introduced in 3.10 for the line number when the tokenizer reports bad UTF8.
(cherry picked from commit 8bc356a7dd50cbdb46d10b8c7e457832431f5d9e)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions