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

Add vasprintf/asprintf #58

Merged
merged 1 commit into from
May 26, 2024
Merged

Add vasprintf/asprintf #58

merged 1 commit into from
May 26, 2024

Conversation

jvoisin
Copy link
Owner

@jvoisin jvoisin commented May 20, 2024

The only hardening being done here is to set the char** parameter to thos functions to NULL in case of an error, to prevent it from being used should people forget to check return values. This is already done on some BSD, as well as in Rocky Linux.

This should close #52

@jvoisin jvoisin force-pushed the asprintf branch 3 times, most recently from ae88622 to 04507aa Compare May 20, 2024 13:02
@jvoisin jvoisin force-pushed the asprintf branch 4 times, most recently from 3d33925 to 6617763 Compare May 24, 2024 20:42
The only hardening being done here is to set the char** parameter to thos
functions to NULL in case of an error, to prevent it from being used should
people forget to check return values. This is already done on some BSD, as well
as in Rocky Linux.
@jvoisin jvoisin merged commit 1becad4 into master May 26, 2024
34 checks passed
@jvoisin jvoisin deleted the asprintf branch May 26, 2024 20:19
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.

Implement idea from sig-security
2 participants