From 8863ce6325f1a0c0514c52276183cbd61395c236 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Fri, 27 Nov 2020 18:52:22 +0100 Subject: [PATCH] src/ntfs.c: fix a check in ntfs_attribheader() --- src/ntfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntfs.c b/src/ntfs.c index 933ab020..afc4c352 100644 --- a/src/ntfs.c +++ b/src/ntfs.c @@ -201,7 +201,7 @@ static const ntfs_attribheader* ntfs_searchattribute(const ntfs_attribheader* at return NULL; /* Now we should be at attributes */ while((const char *)attrib + sizeof(ntfs_attribheader) < end && - le32(attrib->type)!= -1) + le32(attrib->type)!= 0xffffffff) { const unsigned int attr_len=le32(attrib->cbAttribute); if(attr_len%8!=0 || attr_len<0x18 || attr_len>0x10000000 ||