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

!8023 fs/ntfs3: Fixed overflow check in mi_enum_attr()

parents d209f94d 8b0d5226
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 &&