mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (#4058)
and in codecs.escape_decode() when decode an escaped non-ascii byte.
This commit is contained in:
@@ -4147,7 +4147,7 @@ decode_utf8(struct compiling *c, const char **sPtr, const char *end)
|
||||
|
||||
static int
|
||||
warn_invalid_escape_sequence(struct compiling *c, const node *n,
|
||||
char first_invalid_escape_char)
|
||||
unsigned char first_invalid_escape_char)
|
||||
{
|
||||
PyObject *msg = PyUnicode_FromFormat("invalid escape sequence \\%c",
|
||||
first_invalid_escape_char);
|
||||
|
||||
Reference in New Issue
Block a user