Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fee33811 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Validate AttributionSource during unparceling." into sc-dev

parents 84f4ecec 4025c6e7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 */