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

Commit 5ba227f9 authored by Fabien Sanglard's avatar Fabien Sanglard Committed by android-build-merger
Browse files

Fix security vulnerability am: 2ae83f4f am: 11ab5838 am: ac2b87ac am:...

Fix security vulnerability am: 2ae83f4f am: 11ab5838 am: ac2b87ac am: 132d0f2a am: 3995674f am: c7892d9d am: cca3b79c
am: ebbf8a6b

Change-Id: Id8c91e714058b999805aa6da613a4343fecc1d6a
parents 02e4440e ebbf8a6b
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -2134,8 +2134,7 @@ void SurfaceFlinger::setTransactionState(
        if (s.client != NULL) {
        if (s.client != NULL) {
            sp<IBinder> binder = IInterface::asBinder(s.client);
            sp<IBinder> binder = IInterface::asBinder(s.client);
            if (binder != NULL) {
            if (binder != NULL) {
                String16 desc(binder->getInterfaceDescriptor());
                if (binder->queryLocalInterface(ISurfaceComposerClient::descriptor) != NULL) {
                if (desc == ISurfaceComposerClient::descriptor) {
                    sp<Client> client( static_cast<Client *>(s.client.get()) );
                    sp<Client> client( static_cast<Client *>(s.client.get()) );
                    transactionFlags |= setClientStateLocked(client, s.state);
                    transactionFlags |= setClientStateLocked(client, s.state);
                }
                }