summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcannotate
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2014-05-15 18:51:01 +0000
committerjmg <jmg@FreeBSD.org>2014-05-15 18:51:01 +0000
commit69a7241973f2aa3ca64b486dfa916d11d58d0278 (patch)
tree79af3b0150890c046b2e6afa4c6c202962c3354f /usr.sbin/pmcannotate
parent34877a60f18ad1626020df229464d4a34dccd91e (diff)
downloadFreeBSD-src-69a7241973f2aa3ca64b486dfa916d11d58d0278.zip
FreeBSD-src-69a7241973f2aa3ca64b486dfa916d11d58d0278.tar.gz
make a note that FNBUFF cannot overflow as long as LNBUFF is smaller..
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/pmcannotate')
-rw-r--r--usr.sbin/pmcannotate/pmcannotate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pmcannotate/pmcannotate.c b/usr.sbin/pmcannotate/pmcannotate.c
index df547e3..b22d0dc 100644
--- a/usr.sbin/pmcannotate/pmcannotate.c
+++ b/usr.sbin/pmcannotate/pmcannotate.c
@@ -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
OpenPOWER on IntegriCloud