Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2014 18:51:01 +0000 (UTC)
From:      John-Mark Gurney <jmg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266173 - head/usr.sbin/pmcannotate
Message-ID:  <201405151851.s4FIp1lT045142@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405151851.s4FIp1lT045142>