]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r329105: ppp(8): fix code producing debugging logs
authoreugen <eugen@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 12 Mar 2018 17:37:38 +0000 (17:37 +0000)
committereugen <eugen@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 12 Mar 2018 17:37:38 +0000 (17:37 +0000)
commit134bb0a2a38f053e372dad6233ca0c600d659b90
tree961c7dcc7999a4d385a89e2a980160c321255aff
parent406e98cd4b7daa73f7482e46d496633d11e61e0a
MFC r329105: ppp(8): fix code producing debugging logs

  ppp(8): fix code producing debugging logs

  Fix several cases when long buffer is copied to shorter one
  using snprintf that results in contents truncation and
  clobbering unsaved errno value and creation of misleading logs.

PR: 218517
Approved by: mav (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/10@330805 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/ppp/defs.h
usr.sbin/ppp/iface.c
usr.sbin/ppp/ip.c
usr.sbin/ppp/ipv6cp.c
usr.sbin/ppp/ncpaddr.c
usr.sbin/ppp/route.c