aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-05-29 17:31:17 +0000
committerEric Biggers <[email protected]>2025-06-16 01:14:49 +0000
commite202196b8aa249d78ab87eae56bbe0e71e3dc39c (patch)
tree78197503f6b3ad63cdfb91692a3cf4e425ca29a4 /rust/helpers
parentLinux 6.16-rc1 (diff)
downloadkernel-e202196b8aa249d78ab87eae56bbe0e71e3dc39c.tar.gz
kernel-e202196b8aa249d78ab87eae56bbe0e71e3dc39c.zip
lib/crypto: Annotate crypto strings with nonstring
Annotate various keys, ivs, and other byte arrays with __nonstring so that static initializers will not complain about truncating the trailing NUL byte under GCC 15 with -Wunterminated-string-initialization enabled. Silences many warnings like: ../lib/crypto/aesgcm.c:642:27: warning: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (13 chars into 12 available) [-Wunterminated-string-initialization] 642 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Eric Biggers <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions