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/[email protected] Reviewed-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Kees Cook <[email protected]>
1 parent 30c3299 commit c209826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)