Take more care to ensure name_to_string() always returns a proper
authorkrw <krw@openbsd.org>
Tue, 20 Jun 2023 11:52:08 +0000 (11:52 +0000)
committerkrw <krw@openbsd.org>
Tue, 20 Jun 2023 11:52:08 +0000 (11:52 +0000)
commit44612db3764ebbe43979d727a50358a6705b5675
tree2c385560ab24129cfcc3c9f9a0da56ae9bb42867
parent49409ac08c77c59c9e749bacfe3e4ca258a1a4e7
Take more care to ensure name_to_string() always returns a proper
string. Don't rely on GPT partition name containing a terminating
zero or the reserved bytes beyond gp_name being properly
initialized to zero.
sbin/fdisk/gpt.c