svn commit: r285852 - stable/9/usr.sbin/bsnmpd/modules/snmp_hostres
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Jul 24 19:26:07 UTC 2015
Author: pfg
Date: Fri Jul 24 19:26:06 2015
New Revision: 285852
URL: https://svnweb.freebsd.org/changeset/base/285852
Log:
MFC r285719:
snmp_hostres(3): Fix buffer overflow.
Actually just a typo. Detected by gcc + FORTIFY_SOURCE patches.
CID: 1007594
Modified:
stable/9/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c
Directory Properties:
stable/9/usr.sbin/bsnmpd/ (props changed)
stable/9/usr.sbin/bsnmpd/modules/snmp_hostres/ (props changed)
Modified: stable/9/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c
==============================================================================
--- stable/9/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c Fri Jul 24 19:21:48 2015 (r285851)
+++ stable/9/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c Fri Jul 24 19:26:06 2015 (r285852)
@@ -175,7 +175,7 @@ get_printer_status(const struct printer
goto LABEL_DONE;
}
- memset(&fline[0], '\0', sizeof(line));
+ memset(&fline[0], '\0', sizeof(fline));
if (fgets(fline, sizeof(fline) -1, f) == NULL) {
ps = PS_UNKNOWN;
goto LABEL_DONE;
More information about the svn-src-stable-9
mailing list