diff options
author | Kees Cook <kees@kernel.org> | 2025-03-11 01:25:31 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-03-11 15:06:39 +0300 |
commit | 986a6f5eacb900ea0f6036ef724b26e76be40f65 (patch) | |
tree | bf28c15ab87e71bab453ea527f5bc829b48d3bf3 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | accdd1198eaafd82d03390def709c9865ea5859b (diff) | |
download | linux-986a6f5eacb900ea0f6036ef724b26e76be40f65.tar.xz |
vboxsf: Add __nonstring annotations for unterminated strings
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.
This effectively reverts the change in 4e7487245abc ("vboxsf: fix building
with GCC 15"), to add the annotation that has other uses (i.e. warning
if the string is ever used with C string APIs).
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178 [1]
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Brahmajit Das <brahmajit.xyz@gmail.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Link: https://lore.kernel.org/r/20250310222530.work.374-kees@kernel.org
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions