Unverified Commit c4a8ba33 authored by Konstantin Komarov's avatar Konstantin Komarov
Browse files

fs/ntfs3: Add rough attr alloc_size check

parent 1fd21919
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -331,6 +331,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;