mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 09:13:38 +00:00
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>
This commit is contained in:
parent
30c3299174
commit
c209826737
@ -43,7 +43,7 @@ enum {
|
||||
struct type_descriptor {
|
||||
u16 type_kind;
|
||||
u16 type_info;
|
||||
char type_name[1];
|
||||
char type_name[];
|
||||
};
|
||||
|
||||
struct source_location {
|
||||
|
Loading…
Reference in New Issue
Block a user