diff --git a/fs/ntfs3/record.c b/fs/ntfs3/record.c index 463b0abc105114e871504ed7be7794926f6bebb6..cc1aa626bb9ecd4d11c7908cd31cec0beb10bc6b 100644 --- a/fs/ntfs3/record.c +++ b/fs/ntfs3/record.c @@ -319,6 +319,9 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr) if (attr->nres.c_unit) return NULL; + + if (alloc_size > mi->sbi->volume.size) + return NULL; } return attr;