Skip to content

Commit

Permalink
fs/ntfs3: Fix detected field-spanning write (size 8) of single field …
Browse files Browse the repository at this point in the history
…"le->name"

[ Upstream commit d155617 ]

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
aalexandrovich authored and gregkh committed Mar 1, 2024
1 parent 2892571 commit 07b9186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ntfs3/ntfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 07b9186

Please sign in to comment.