fs/ntfs3: Fix detected field-spanning write (size 8) of single field "le->name"
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 24 Nov 2023 08:47:30 +0000 (11:47 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Wed, 6 Dec 2023 14:46:11 +0000 (17:46 +0300)
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/ntfs.h

index 86aecbb01a92f282ab621a26df9897b70b65df28..13e96fc63dae5ebe9d91b22d94cd8080f8945c9c 100644 (file)
@@ -523,7 +523,7 @@ struct ATTR_LIST_ENTRY {
        __le64 vcn;             // 0x08: Starting VCN of this attribute.
        struct MFT_REF ref;     // 0x10: MFT record number with attribute.
        __le16 id;              // 0x18: struct ATTRIB ID.
-       __le16 name[3];         // 0x1A: Just to align. To get real name can use bNameOffset.
+       __le16 name[];          // 0x1A: Just to align. To get real name can use name_off.
 
 }; // sizeof(0x20)