mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Fixed huge data writes
When computing the runlist for the first non-resident write to an attribute, an inconsistency was created between the attribute image and the ntfs_attr structure, which could cause an MFT record overflow when the first write is huge and fragmented (reported by Vito Caputo).
This commit is contained in:
parent
59ecea5c80
commit
864cf7232e
@ -5468,6 +5468,7 @@ static int ntfs_attr_update_meta(ATTR_RECORD *a, ntfs_attr *na, MFT_RECORD *m,
|
||||
|
||||
NAttrClearSparse(na);
|
||||
a->flags &= ~ATTR_IS_SPARSE;
|
||||
na->data_flags = a->flags;
|
||||
a->compression_unit = 0;
|
||||
|
||||
memmove((u8*)a + le16_to_cpu(a->name_offset) - 8,
|
||||
|
Loading…
Reference in New Issue
Block a user