Re: [PATCH] wireguard: noise: Add __nonstring annotations for unterminated strings
From: Jakub Kicinski
Date: Tue Mar 11 2025 - 06:20:22 EST
On Mon, 10 Mar 2025 15:22:50 -0700 Kees Cook wrote:
> When a character array without a terminating NUL character has a static
> initializer, GCC 15's -Wunterminated-string-initialization will only
> warn if the array lacks the "nonstring" attribute[1]. Mark the arrays
> with __nonstring to and correctly identify the char array as "not a C
> string" and thereby eliminate the warning.
Hi! Would marking all of u8 as non-string not be an option? How many
of such warnings do we have in the tree? Feel free to point me to a
previous conversation.