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

some safety tweaks to conf-parser.[ch] #22458

Merged
merged 7 commits into from Feb 9, 2022

Conversation

poettering
Copy link
Member

No description provided.

This helper is just like config_parse_string() but does some superficial
checks for control characters and quotes.

In most cases we currently use config_parse_string() we probably want to
use config_parse_safe_string() for safety reasons.
Let's rename the return parameters ret_xyz, and always initialize them
if we return >= 0, as per our current coding style.
@poettering
Copy link
Member Author

(inspired by #19970 (review))

@bluca bluca added the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Feb 9, 2022
Copy link
Member

@yuwata yuwata left a comment

Choose a reason for hiding this comment

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

LGTM too.

@bluca bluca merged commit 0b0ad49 into systemd:main Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed journal-remote network util-lib
Development

Successfully merging this pull request may close these issues.

None yet

3 participants