]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Fix possible array overrun
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 Feb 2017 00:51:31 +0000 (19:51 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 Feb 2017 00:51:31 +0000 (19:51 -0500)
commit9010012aa140c0301d1ae1121a0f4d16b22dcb0b
tree5e2df0123210527f6428f96d8f2ffc338e9340da
parent3d217741c3cc441a9ffb3d2f903c4fb34292638f
lib: Fix possible array overrun

It is possible if the hostname is > 32
characters that we would just overrun the
client_name data structure.  Truncate
the hostname string to 31 characters (to allow for NULL)

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/ptm_lib.c