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

prepare-root: check return codes for errors when assembling paths #2472

Merged
merged 1 commit into from
Oct 26, 2021

Conversation

lucab
Copy link
Member

@lucab lucab commented Oct 26, 2021

This adds checks around all snprintf calls in order to detect
failures and gracefully abort.

@lucab
Copy link
Member Author

lucab commented Oct 26, 2021

The suggestion in the review here was to introduce an infallible wrapping helper, but I'd rather not add more variadic complexity nor preprocessor macro magic.

Longer term, if we want to do a cleanup pass on this logic, I think a better investment effort would be porting to the usual glib helpers instead.

@jlebon jlebon enabled auto-merge October 26, 2021 14:05
@cgwalters
Copy link
Member

Needs a rebase

@cgwalters cgwalters disabled auto-merge October 26, 2021 14:07
This adds checks around all `snprintf` calls in order to detect
failures and gracefully abort.
@lucab lucab force-pushed the ups/prepare-root-checked-printf branch from a2ca907 to ca84da6 Compare October 26, 2021 16:16
@lucab
Copy link
Member Author

lucab commented Oct 26, 2021

Rebased.

@jlebon jlebon enabled auto-merge October 26, 2021 16:31
@jlebon jlebon merged commit b7efd16 into ostreedev:main Oct 26, 2021
@lucab lucab deleted the ups/prepare-root-checked-printf branch January 4, 2022 08:04
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.

3 participants