Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

always setlocale in utf8 conversion code #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

always setlocale in utf8 conversion code #87

wants to merge 1 commit into from

Conversation

till-varoquaux
Copy link
Contributor

If setlocal is called after the first call to unicode_to_utf8 we can get a nullptr in an expr_str_t potentially leading to a segfault.
The only way I could trigger this bug myself was by writing a program that called set_locale directly but I can't rule out some library or glibc function calling it out.

@till-varoquaux till-varoquaux changed the title always setlocale scan.ll utf8 code always setlocale in utf8 conversion code May 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant