]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-124064: Fix -Wconversion warnings in Parser/string_parser.c (GH-124204...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Sep 2024 01:13:13 +0000 (03:13 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Sep 2024 01:13:13 +0000 (18:13 -0700)
commit5dcce94e9dfd80d0e09c083f97af758ab1caa272
tree8f645ac83db1ecb28f920fcfd3595a7bd7114b75
parent32acfdb678e3a4cbff7dcbbc5233d169cdafe1a9
[3.13] gh-124064: Fix -Wconversion warnings in Parser/string_parser.c (GH-124204) (#124216)

gh-124064: Fix -Wconversion warnings in Parser/string_parser.c (GH-124204)

Fix integer overflow check in decode_unicode_with_escapes(): use
PY_SSIZE_T_MAX instead of SIZE_MAX.
(cherry picked from commit f9fa6ba4f8d90ae12bc1f6a792d66903bb169ba8)

Co-authored-by: Victor Stinner <vstinner@python.org>
Parser/string_parser.c