]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r311290,r311293,r311294:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Jan 2017 08:51:46 +0000 (08:51 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Jan 2017 08:51:46 +0000 (08:51 +0000)
commitbb75e40e8ef27469650a9d3d2023ee9a9bce422c
tree87b6c735be8272af4eedb9f7410648b7827b7bf4
parent60bcb72794488813864a6db3863c8f3edef680c1
MFC r311290,r311293,r311294:

r311290:

Use strlcpy instead of strcpy when copying the bridge name to ifr.ifr_name
to avoid buffer overflows

CID: 100673510067371006738

r311293:

bridge_do_pfctl: allocate mib_name dynamically using asprintf

This is being done to reduce wasted space, simplify complexity in
the code, and to quell a Coverity warning about buffer overruns.
warning about buffer overruns.

CID: 1006736

r311294:

style cleanup

- bridge_pf_dump: use nitems instead of spelling it out longhand
- bridge_do_pfctl: sort variables by alignment for type

git-svn-id: svn://svn.freebsd.org/base/stable/10@312044 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c