Skip to content

[3.15] gh-154176: Fix locale.strxfrm() crash on DragonFly BSD (GH-154177) - #154217

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-f389b03-3.15
Jul 20, 2026
Merged

[3.15] gh-154176: Fix locale.strxfrm() crash on DragonFly BSD (GH-154177)#154217
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-f389b03-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

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.
(cherry picked from commit f389b03)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Fable 5 noreply@anthropic.com

…H-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.
(cherry picked from commit f389b03)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka merged commit 2e4a1fa into python:3.15 Jul 20, 2026
54 of 55 checks passed
@miss-islington
miss-islington deleted the backport-f389b03-3.15 branch July 20, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants