Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

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 <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/202401091421.3RJ24Mn3-lkp@intel.com/ Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
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)