Merge "Merge "Validate AttributionSource during unparceling." into sc-dev am: fee338118c am: 2fa0bc50f2" into sc-v2-dev-plus-aosp

This commit is contained in:
Automerger Merge Worker
2021-07-13 21:16:36 +00:00
committed by Android (Google) Code Review

View File

@@ -152,6 +152,10 @@ public final class AttributionSource implements Parcelable {
AttributionSource(@NonNull Parcel in) {
this(AttributionSourceState.CREATOR.createFromParcel(in));
// Since we just unpacked this object as part of it transiting a Binder
// call, this is the perfect time to enforce that its UID can be trusted
enforceCallingUid();
}
/** @hide */