]> git.puffer.fish Git - matthieu/frr.git/commit
lib: limit size of vty buffer to 4096 bytes
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 10 Jan 2017 23:33:50 +0000 (23:33 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 13 Jan 2017 13:37:40 +0000 (14:37 +0100)
commit78af6edc6cd7d17fa11d11fbb9f54efd459230e2
tree93ad0ef752fee81a9e7d2479d2d57441fabe071f
parentccc4bd306225df7b5f5a5da30c13f65266d9520c
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]
lib/vty.c
lib/vty.h