]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-130567: Fix possible crash in locale.strxfrm() (GH-138940) (GH-139266)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 24 Sep 2025 11:48:08 +0000 (13:48 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Sep 2025 11:48:08 +0000 (13:48 +0200)
commitd1f6b392e466ede5e4501d33606601eacdd6cae7
treec7081871d456e31242ca20c6b2fc31f8624bafe4
parent7f83461e567915d3133c6b98de2bda9c7a33559c
[3.13] gh-130567: Fix possible crash in locale.strxfrm() (GH-138940) (GH-139266)

On some macOS versions there was an off-by-one error in wcsxfrm() which
caused writing past the end of the array if its size was not calculated
by running wcsxfrm() first.
(cherry picked from commit 5854cf38a25ab8b0c6ab0296098166014f77caa3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Misc/NEWS.d/next/Library/2025-09-15-19-29-12.gh-issue-130567.shDEnT.rst [new file with mode: 0644]
Modules/_localemodule.c