mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Rejected invalid null reparse tag
The null reparse tag is considered invalid by Windows, so do the same.
This commit is contained in:
parent
4d5ce43ab9
commit
f7cbf30d54
@ -442,6 +442,7 @@ static BOOL valid_reparse_data(ntfs_inode *ni,
|
||||
|
||||
ok = ni && reparse_attr
|
||||
&& (size >= sizeof(REPARSE_POINT))
|
||||
&& (reparse_attr->reparse_tag != IO_REPARSE_TAG_RESERVED_ZERO)
|
||||
&& (((size_t)le16_to_cpu(reparse_attr->reparse_data_length)
|
||||
+ sizeof(REPARSE_POINT)
|
||||
+ ((reparse_attr->reparse_tag &
|
||||
|
Loading…
Reference in New Issue
Block a user