]> 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)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 6 Jan 2020 15:12:52 +0000 (15:12 +0000)
commitc00c10c3f8b1f58d948fe2b986088ce8bf63b084
treec71510a64bd207ae634336e15c86d5529bd61822
parent77b1029d207083d583d81d2f2fb7a840e0f23cab
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