mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
fs/ntfs3: Use variable length array instead of fixed size
[ Upstream commit1997cdc3e7
] Should fix smatch warning: ntfs_set_label() error: __builtin_memcpy() 'uni->name' too small (20 vs 256) Fixes:4534a70b70
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
98db3155b5
commit
3839a9b19a
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ struct GUID {
|
|||
struct cpu_str {
|
||||
u8 len;
|
||||
u8 unused;
|
||||
u16 name[10];
|
||||
u16 name[];
|
||||
};
|
||||
|
||||
struct le_str {
|
||||
|
|
Loading…
Reference in a new issue