]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix string truncation in getnameinfo() (#462)
authorAmos Jeffries <yadij@users.noreply.github.com>
Sun, 5 Jan 2020 13:29:29 +0000 (13:29 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 19 Mar 2020 10:49:01 +0000 (23:49 +1300)
commitdd41ef460a71857ff8a9e6fc3bc9d41a7a234ffd
treea822db2d715117469439197c62787e580135fa4b
parent8a511d5e05aa17b47c7566839fd9c524512489d3
Fix string truncation in getnameinfo() (#462)

strncpy can leave strings unterminated. Use xstrncpy instead
of relying on callers to terminate their buffers.
compat/getnameinfo.cc