summaryrefslogtreecommitdiff
path: root/usr.sbin/pmcannotate
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2014-05-15 18:51:01 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2014-05-15 18:51:01 +0000
commit04abf5f1525e73c9b1dbdc4e05284bb2c9d132de (patch)
tree79af3b0150890c046b2e6afa4c6c202962c3354f /usr.sbin/pmcannotate
parent9970fd6d95161d0b6cebe70488d08f628b8fb69c (diff)
downloadsrc-test-04abf5f1525e73c9b1dbdc4e05284bb2c9d132de.tar.gz
src-test-04abf5f1525e73c9b1dbdc4e05284bb2c9d132de.zip
make a note that FNBUFF cannot overflow as long as LNBUFF is smaller..
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=266173
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 df547e37735f6..b22d0dc827872 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