-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
make the unsafe truncating functions safe #52
Comments
rurban
added a commit
that referenced
this issue
Mar 1, 2018
on truncation put a 0 at the end, shorten the length by -1. len is the size then. snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s See #52
rurban
added a commit
that referenced
this issue
Mar 1, 2018
on truncation put a 0 at the end, shorten the length by -1. len is the size then. snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s fix snprintf_s, vsnprintf_s for dmax==0: allow NULL dest then. clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s See #52
rurban
added a commit
that referenced
this issue
Mar 1, 2018
on truncation put a 0 at the end, shorten the length by -1. len is the size then. snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s fix snprintf_s, vsnprintf_s for dmax==0: allow NULL dest then. clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s See #52
rurban
added a commit
that referenced
this issue
Mar 1, 2018
on truncation put a 0 at the end, shorten the length by -1. len is the size then. snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s fix snprintf_s, vsnprintf_s: allow dmax==0 clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s. See #52
rurban
added a commit
that referenced
this issue
Mar 1, 2018
guarantee null termination. on truncation put a 0 at the end, shorten the length by -1. len is the size then. snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s fix snprintf_s, vsnprintf_s: allow dmax==0 clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s. See #52
rurban
added a commit
that referenced
this issue
Mar 1, 2018
guarantee null termination. on truncation put a 0 at the end, shorten the length by -1. len is the size then. snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s fix snprintf_s, vsnprintf_s: allow dmax==0 clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s. See #52
rurban
added a commit
that referenced
this issue
Mar 1, 2018
guarantee null termination. on truncation put a 0 at the end, shorten the length by -1. len is the size then. snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s fix snprintf_s, vsnprintf_s: allow dmax==0 clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s. See #52
rurban
added a commit
that referenced
this issue
Mar 1, 2018
snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s: guarantee null termination. on truncation put a 0 at the end, shorten the length by -1. len is the size then. clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s. See #52
rurban
added a commit
that referenced
this issue
Mar 2, 2018
snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s: guarantee null termination. on truncation put a 0 at the end, shorten the length by -1. len is the size then. clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s. See #52
rurban
added a commit
that referenced
this issue
Mar 2, 2018
snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s: guarantee null termination. on truncation put a 0 at the end, shorten the length by -1. len is the size then. clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s. See #52
rurban
added a commit
that referenced
this issue
Mar 2, 2018
snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s: guarantee null termination. on truncation put a 0 at the end, shorten the length by -1. len is the size then. clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s. See #52
rurban
added a commit
that referenced
this issue
Mar 2, 2018
snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s: guarantee null termination. on truncation put a 0 at the end, shorten the length by -1. len is the size then. clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s. See #52
rurban
added a commit
that referenced
this issue
Mar 2, 2018
snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s: guarantee null termination. on truncation put a 0 at the end, shorten the length by -1. len is the size then. clear dest on errors after printing to it. null slack at end of buffer. fix documentation of snprintf_s. See #52
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
on truncation put a 0 at the end, shorten the length by -1. len is the size then.
snprintf_sm, vsnprintf_s, snwprintf_s, vsnwprintf_s
The text was updated successfully, but these errors were encountered: