]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-130567: Fix possible crash in locale.strxfrm() (GH-138940)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 23 Sep 2025 15:11:50 +0000 (18:11 +0300)
committerGitHub <noreply@github.com>
Tue, 23 Sep 2025 15:11:50 +0000 (15:11 +0000)
commit5854cf38a25ab8b0c6ab0296098166014f77caa3
tree94fc64be16ce3ce5d0a1dd72117a3080000f0c95
parent6b4e3fe9d42708ca6e8cfb7407c22647787a6b29
gh-130567: Fix possible crash in locale.strxfrm() (GH-138940)

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.

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