Author: pfg
Date: Mon Jul 20 16:08:01 2015
New Revision: 285719
URL: https://svnweb.freebsd.org/changeset/base/285719
Log:
snmp_hostres(3): Fix buffer overflow.
Actually just a typo. Detected by gcc + FORTIFY_SOURCE patches.
CID: 1007594
MFC after: 3 days
Modified:
head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c
Modified: head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c Mon Jul
20 14:40:34 2015 (r285718)
+++ head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c Mon Jul
20 16:08:01 2015 (r285719)
@@ -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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"