svn commit: r266173 - head/usr.sbin/pmcannotate

John-Mark Gurney jmg at FreeBSD.org
Thu May 15 18:51:02 UTC 2014


Author: jmg
Date: Thu May 15 18:51:01 2014
New Revision: 266173
URL: http://svnweb.freebsd.org/changeset/base/266173

Log:
  make a note that FNBUFF cannot overflow as long as LNBUFF is smaller..
  
  MFC after:	2 weeks

Modified:
  head/usr.sbin/pmcannotate/pmcannotate.c

Modified: head/usr.sbin/pmcannotate/pmcannotate.c
==============================================================================
--- head/usr.sbin/pmcannotate/pmcannotate.c	Thu May 15 18:47:07 2014	(r266172)
+++ head/usr.sbin/pmcannotate/pmcannotate.c	Thu May 15 18:51:01 2014	(r266173)
@@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$");
 
 #include <unistd.h>
 
+/* NB: Make sure FNBUFF is as large as LNBUFF, otherwise it could overflow */
 #define	FNBUFF	512
 #define	LNBUFF	512
 


More information about the svn-src-all mailing list