mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 02:53:55 +00:00
Merge pull request #2098 from qlyoung/fix-underline-buf-overflow
lib: fix dynamic stack buffer overflow
This commit is contained in:
commit
b2f6b81e7b
@ -140,7 +140,7 @@ static void cpu_record_print(struct vty *vty, thread_type filter)
|
||||
|
||||
char underline[strlen(name) + 1];
|
||||
memset(underline, '-', sizeof(underline));
|
||||
underline[sizeof(underline)] = '\0';
|
||||
underline[sizeof(underline) - 1] = '\0';
|
||||
|
||||
vty_out(vty, "\n");
|
||||
vty_out(vty, "Showing statistics for pthread %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user