]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MIB-II: use strlcpy instead of strcpy when copying {descr,name}
authorngie <ngie@FreeBSD.org>
Sat, 31 Dec 2016 12:03:25 +0000 (12:03 +0000)
committerngie <ngie@FreeBSD.org>
Sat, 31 Dec 2016 12:03:25 +0000 (12:03 +0000)
commitddb4db9d9ba5a03229f8e49b5183fb0e97283c72
tree93283ce3444983b0a705b0b0710006bd04b26386
parent07b98388f3b2d34cba6c9be0560fbb298d566b00
MIB-II: use strlcpy instead of strcpy when copying {descr,name}

This is of course to avoid buffer overruns

The remaining strcpy instance in the module needs to be audited for
correctness

MFC after: 1 week
Reported by: Coverity
CID: 10068271006828
contrib/bsnmp/snmp_mibII/mibII.c