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

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

Merge "Fix security vulnerability" into nyc-dev

parents ded55218 45b20251
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -2168,8 +2168,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);
                }
                }