]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r311378:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Jan 2017 09:04:29 +0000 (09:04 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Jan 2017 09:04:29 +0000 (09:04 +0000)
commit1f620c011100bf08039cc259f418f13b006e4c76
tree161570feac75db2d5330ccfdff3352b8bce57594
parent5a13c711cdf2ace93f0c6388b05ead6375e57e82
MFC r311378:

lm_load: fix string copying issues

- Ensure `section` doesn't overrun section by using strlcpy instead of
  strcpy [*].
- Use strdup instead of malloc + strcpy (this wasn't flagged by Coverity,
  but is an opportunistic change).

CID: 1006826 [*]

git-svn-id: svn://svn.freebsd.org/base/stable/10@312054 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/bsnmp/snmpd/main.c