Rejected invalid null reparse tag

The null reparse tag is considered invalid by Windows, so do the same.
This commit is contained in:
Jean-Pierre André 2015-12-01 11:06:11 +01:00
parent 4d5ce43ab9
commit f7cbf30d54

View File

@ -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 &