Fixed Security Vulnerability of DcParamObject

The writeToParcel and readFromParcel is not symmetry, fixed it.

Test: no test
Bug: 70721937
Change-Id: I01f6f6b2ab778ee8b638d9b69fe0a6b9aa7ee395
This commit is contained in:
Pengquan Meng
2018-03-08 20:08:25 -08:00
parent eaa093272e
commit 8c55a70728

View File

@@ -36,7 +36,7 @@ public class DcParamObject implements Parcelable {
}
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(mSubId);
dest.writeInt(mSubId);
}
private void readFromParcel(Parcel in) {