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

sprintbuf(): test for all vsnprintf error values #748

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

stoeckmann
Copy link
Contributor

@stoeckmann stoeckmann commented Feb 27, 2022

The POSIX specification states that vsnprintf returns "a negative value"
in case of error, but the code checks explicitly only for -1.

Shoutout to C3H2-CTF.

The POSIX specification states that vsnprintf returns "a negative value"
in case of error, but the code checks explicitly only for -1.
@hawicz hawicz merged commit f0d93ce into json-c:master Mar 7, 2022
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.

2 participants