Skip to content

Commit c209826

Browse files
committed
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>
1 parent 30c3299 commit c209826

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ubsan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ enum {
4343
struct type_descriptor {
4444
u16 type_kind;
4545
u16 type_info;
46-
char type_name[1];
46+
char type_name[];
4747
};
4848

4949
struct source_location {

0 commit comments

Comments
 (0)