]> 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)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 10 Jan 2017 23:33:50 +0000 (23:33 +0000)
commit2af38873d89e20bd039255418366c1601aa99e64
treee0861e6bd3ff24e00172d68c9cd04a168d522558
parentb98f56422e692217bb149aaa78fda77e07097658
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>
lib/vty.c
lib/vty.h