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

Always initialize config_t structure, fixes #270 #271

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

bket
Copy link
Contributor

@bket bket commented Jul 14, 2020

Without this change the config_t structure is ONLY initialized when it
meets a specific criterion. If this criterion is not met the config_t
structure is still used, which can cause a segmentation fault.

Fixes #270.

Without this change the config_t structure is ONLY initialized when it
meets a specific criterion. If this criterion is not met the config_t
structure is still used, which can cause a segmentation fault.

Fixes yrutschle#270.
@yrutschle
Copy link
Owner

Nice. Thanks for the patch. I'm not merging because the issue is actually in conf2struct, so I'll go change it there...

@yrutschle yrutschle merged commit cf46cd5 into yrutschle:master Jul 15, 2020
@yrutschle
Copy link
Owner

Actually might as well merge it directly.

Thanks again.

@bket bket deleted the config_init branch July 16, 2020 04:03
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.

Optimization flags other than -O0 causing segfault on clang
2 participants