]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-130567: Fix possible crash in locale.strxfrm() (GH-138940) (GH-139265)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 19:54:04 +0000 (21:54 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 19:54:04 +0000 (21:54 +0200)
commitfff26500e52898b21021121ca8b32fc18820e518
tree2595bc826896742ce6dccccf6f55ed96f864433f
parentd912e9a8520c92ec0fed2bc8e8fd5cc83fa8776b
[3.14] gh-130567: Fix possible crash in locale.strxfrm() (GH-138940) (GH-139265)

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>
Co-authored-by: Petr Viktorin <encukou@gmail.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