Unverified Commit f179f3c5 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8114 [sync] PR-8023: fs/ntfs3: Fixed overflow check in mi_enum_attr()

parents 9b3b5a5a c4adfc2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr)
			return NULL;

		t32 = le32_to_cpu(attr->res.data_size);
		if (t16 + t32 > asize)
		if (t32 > asize - t16)
			return NULL;

		if (attr->name_len &&