Glenn Washburn f7a663c007 term/serial: Ensure proper NULL termination after grub_strncpy()
A large enough argument to the --port option could cause a string buffer
to be not NULL terminated because grub_strncpy() does not guarantee NULL
termination if copied string is longer than max characters to copy.

Fixes: 712309eaae04 (term/serial: Use grub_strncpy() instead of grub_snprintf() when only copying string)

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2023-10-12 17:27:34 +02:00
..
2023-06-01 11:45:00 +02:00
2022-03-14 16:00:06 +01:00
2013-12-18 18:43:09 +01:00
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:06 +01:00
2013-12-21 15:28:28 +01:00