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

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.
Copy link
Member

@ueno ueno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you; looks good to me.

@ueno ueno merged commit 56251aa into p11-glue:master Sep 7, 2020
@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 February 28, 2022 16:19
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.

2 participants