mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
replace PY_SIZE_MAX with SIZE_MAX
This commit is contained in:
parent
c75abff533
commit
2f8bfef158
12 changed files with 18 additions and 26 deletions
|
@ -3985,7 +3985,7 @@ decode_unicode_with_escapes(struct compiling *c, const char *s, size_t len)
|
|||
const char *end;
|
||||
|
||||
/* check for integer overflow */
|
||||
if (len > PY_SIZE_MAX / 6)
|
||||
if (len > SIZE_MAX / 6)
|
||||
return NULL;
|
||||
/* "ä" (2 bytes) may become "\U000000E4" (10 bytes), or 1:5
|
||||
"\ä" (3 bytes) may become "\u005c\U000000E4" (16 bytes), or ~1:6 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue