Skip to content

Commit 1997cdc

Browse files
fs/ntfs3: Use variable length array instead of fixed size
Should fix smatch warning: ntfs_set_label() error: __builtin_memcpy() 'uni->name' too small (20 vs 256) Fixes: 4534a70 ("fs/ntfs3: Add headers and misc files") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Konstantin Komarov <[email protected]>
1 parent e931f6b commit 1997cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ntfs3/ntfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct GUID {
5959
struct cpu_str {
6060
u8 len;
6161
u8 unused;
62-
u16 name[10];
62+
u16 name[];
6363
};
6464

6565
struct le_str {

0 commit comments

Comments
 (0)