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

Fix strlcpy() usage. #115

Merged
merged 1 commit into from
Jul 23, 2020
Merged

Fix strlcpy() usage. #115

merged 1 commit into from
Jul 23, 2020

Conversation

millert
Copy link
Contributor

@millert millert commented Jul 23, 2020

The size argument should be the full size of the buffer, not the number of bytes to copy. The strlcpy() return value should be checked to verify that truncation did not occur. From OpenBSD.

The size argument should be the full size of the buffer, not the
number of bytes to copy.  The strlcpy() return value should be
checked to verify that truncation did not occur.
Copy link
Member

@wcawijngaards wcawijngaards left a comment

Choose a reason for hiding this comment

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

Thank you for the patch! Did not know about those things, even though that was not my commit. Review looks good, I'll merge it into the code repo.

@wcawijngaards wcawijngaards merged commit bec0ba2 into NLnetLabs:master Jul 23, 2020
wcawijngaards added a commit that referenced this pull request Jul 23, 2020
- Merge #115 from millert: Fix strlcpy() usage. From OpenBSD.
fanf2 pushed a commit to fanf2/nsd that referenced this pull request Aug 4, 2020
- Merge NLnetLabs#115 from millert: Fix strlcpy() usage. From OpenBSD.
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