Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: Check for a NULL locale before freeing it #321

Merged
merged 1 commit into from Sep 7, 2020
Merged

common: Check for a NULL locale before freeing it #321

merged 1 commit into from Sep 7, 2020

Conversation

tavianator
Copy link
Contributor

@tavianator tavianator commented Sep 6, 2020

If newlocale() fails, (locale_t) 0 ends up being passed to freelocale(),
resulting in a segfault when the library is unloaded.

If newlocale() fails, (locale_t) 0 ends up being passed to freelocale(),
resulting in a segfault when the library is unloaded.
ueno
ueno approved these changes Sep 7, 2020
Copy link
Member

@ueno ueno left a comment

Thank you; looks good to me.

@ueno ueno merged commit 56251aa into p11-glue:master Sep 7, 2020
2 checks passed
@ueno ueno added this to the 0.23.22 milestone Dec 11, 2020
@ueno ueno added the bug label Dec 11, 2020
@tavianator tavianator deleted the free-null-locale branch Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants