summaryrefslogtreecommitdiff
path: root/lib/vty.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-01-10 23:33:50 +0000
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-13 14:37:40 +0100
commit78af6edc6cd7d17fa11d11fbb9f54efd459230e2 (patch)
tree93ad0ef752fee81a9e7d2479d2d57441fabe071f /lib/vty.h
parentccc4bd306225df7b5f5a5da30c13f65266d9520c (diff)
lib: limit size of vty buffer to 4096 bytes
This removes the automatic resizing of the vty input buffer and places a hard size cap of 4096 bytes. It also fixes a potentially unsafe strcpy. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com> [cherry-picked from master 2af38873d89e20bd039255418366c1601aa99e64]
Diffstat (limited to 'lib/vty.h')
-rw-r--r--lib/vty.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty.h b/lib/vty.h
index 51d61b4a8c..f5c019dd61 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -26,7 +26,7 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
#include "sockunion.h"
#include "qobj.h"
-#define VTY_BUFSIZ 512
+#define VTY_BUFSIZ 4096
#define VTY_MAXHIST 20
#if defined(VTY_DEPRECATE_INDEX) && defined(__GNUC__) && \