]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r311290,r311293,r311294:
authorngie <ngie@FreeBSD.org>
Fri, 13 Jan 2017 08:51:43 +0000 (08:51 +0000)
committerngie <ngie@FreeBSD.org>
Fri, 13 Jan 2017 08:51:43 +0000 (08:51 +0000)
commitb3834c3ad55acf61be5dabbc5ce2444031ec733d
tree42bbd65352dca9feddda0b9a129f2accb81c9590
parent116e56212cda03ba3a2b1fdb0ed5dc4df6f89a48
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
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c