diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-01-10 23:33:50 +0000 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-01-13 14:37:40 +0100 |
| commit | 78af6edc6cd7d17fa11d11fbb9f54efd459230e2 (patch) | |
| tree | 93ad0ef752fee81a9e7d2479d2d57441fabe071f /lib/vty.h | |
| parent | ccc4bd306225df7b5f5a5da30c13f65266d9520c (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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__) && \ |
