]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154176: Fix locale.strxfrm() crash on DragonFly BSD (GH-154177)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 20 Jul 2026 05:59:31 +0000 (08:59 +0300)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 05:59:31 +0000 (08:59 +0300)
commitf389b03f9f2768342bfd49987a257460d4aa4faf
tree714fb518d855435b54e4799f8ef258197394c6fa
parent863b31268c3160af1febcee4c79ff6ed380f328f
gh-154176: Fix locale.strxfrm() crash on DragonFly BSD (GH-154177)

Query the result size with a real one-element buffer instead of
wcsxfrm(NULL, s, 0): DragonFly BSD's wcsxfrm() crashes when the
destination is NULL or the size is 0.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Misc/NEWS.d/next/Library/2026-07-19-21-30-00.gh-issue-154176.strxfrm.rst [new file with mode: 0644]
Modules/_localemodule.c