ubsan: Remove 1-element array usage in debug reporting
authorKees Cook <keescook@chromium.org>
Wed, 24 Apr 2024 16:27:39 +0000 (09:27 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 24 Apr 2024 18:59:19 +0000 (11:59 -0700)
commitc209826737b733b4ccd38448d7b025bb128aaa8a
tree9dadccfa24c166de97e470285ca290e6fca2de19
parent30c3299174c7812cd2e270151c714a9f846b2ad0
ubsan: Remove 1-element array usage in debug reporting

The "type_name" character array was still marked as a 1-element array.
While we don't validate strings used in format arguments yet, let's fix
this before it causes trouble some future day.

Link: https://lore.kernel.org/r/20240424162739.work.492-kees@kernel.org
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
lib/ubsan.h