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

Commit 1bcfd63f authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "libbinder_ndk: fix UB memory access for race" am: 91e66f9b

am: 71f6077f

Change-Id: I34bcccf610a1b02c990f07869ab60fd5cf65ef9e
parents e6853a20 71f6077f
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -133,7 +133,7 @@ struct AIBinder_DeathRecipient {
    // binderDied receipt only gives us information about the IBinder.
    // binderDied receipt only gives us information about the IBinder.
    struct TransferDeathRecipient : ::android::IBinder::DeathRecipient {
    struct TransferDeathRecipient : ::android::IBinder::DeathRecipient {
        TransferDeathRecipient(const ::android::wp<::android::IBinder>& who, void* cookie,
        TransferDeathRecipient(const ::android::wp<::android::IBinder>& who, void* cookie,
                               const AIBinder_DeathRecipient_onBinderDied& onDied)
                               const AIBinder_DeathRecipient_onBinderDied onDied)
            : mWho(who), mCookie(cookie), mOnDied(onDied) {}
            : mWho(who), mCookie(cookie), mOnDied(onDied) {}


        void binderDied(const ::android::wp<::android::IBinder>& who) override;
        void binderDied(const ::android::wp<::android::IBinder>& who) override;
@@ -144,7 +144,7 @@ struct AIBinder_DeathRecipient {
       private:
       private:
        ::android::wp<::android::IBinder> mWho;
        ::android::wp<::android::IBinder> mWho;
        void* mCookie;
        void* mCookie;
        const AIBinder_DeathRecipient_onBinderDied& mOnDied;
        const AIBinder_DeathRecipient_onBinderDied mOnDied;
    };
    };


    explicit AIBinder_DeathRecipient(AIBinder_DeathRecipient_onBinderDied onDied);
    explicit AIBinder_DeathRecipient(AIBinder_DeathRecipient_onBinderDied onDied);