Closed esabol closed 5 years ago
It took me a while to come to this realization, but using strlen(socket)
for the third argument to strncpy()
is clearly a bug. A harmless one, but still a bug. The relevant size for any strncpy()
call is the size of the destination string, not the length (or size) of the source string.
you could use
git commit --amend
to reduce git log history.
Thanks for the tip. I've squashed the three commits into a single commit for the sake of cleanliness.
How about this one? Could it be merged?
It seems there is no objection to merge this pull request
This splits off one of the changes from PR #229 into a separate PR.
It fixes the following warning message when compiled with gcc 8.2.0+:
More information: https://developers.redhat.com/blog/2018/05/24/detecting-string-truncation-with-gcc-8/
Relevant section: