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

Commit 0a31518c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Validate AttributionSource during unparceling." into sc-dev am: fee33811

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15275356

Change-Id: I053ab02c3c3d8741c3ecdb0ef6260643ddaaa1b7
parents 49b2fca4 fee33811
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 */