From f7cbf30d5451d6c184913214f54cf15da378eae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Tue, 1 Dec 2015 11:06:11 +0100 Subject: [PATCH] Rejected invalid null reparse tag The null reparse tag is considered invalid by Windows, so do the same. --- libntfs-3g/reparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libntfs-3g/reparse.c b/libntfs-3g/reparse.c index 2198b491..8293cc02 100644 --- a/libntfs-3g/reparse.c +++ b/libntfs-3g/reparse.c @@ -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 &