OSDN Git Service

Fixed Security Vulnerability of DcParamObject
authorPengquan Meng <mpq@google.com>
Fri, 9 Mar 2018 04:08:25 +0000 (20:08 -0800)
committerPengquan Meng <mpq@google.com>
Fri, 9 Mar 2018 04:18:36 +0000 (04:18 +0000)
The writeToParcel and readFromParcel is not symmetry, fixed it.

Test: no test
Bug: 70721937
Change-Id: I01f6f6b2ab778ee8b638d9b69fe0a6b9aa7ee395

telephony/java/com/android/internal/telephony/DcParamObject.java

index 139939c..fc6b610 100644 (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) {