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

Commit e34afe0a authored by Fabien Sanglard's avatar Fabien Sanglard Committed by Sean McCreary
Browse files

Fix security vulnerability

AOSP-Change-Id: I4c9ea3a3177131fa29d2561da71ef18bec3af108
Test: angler, marlin
Bug: 32628763

CVE-2017-0546

Change-Id: I3e87518163540a9fce1d4fc3751ed558d4854140
(cherry picked from commit 45b20251)
parent c2983e9d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2249,8 +2249,7 @@ void SurfaceFlinger::setTransactionState(
        if (s.client != NULL) {
            sp<IBinder> binder = IInterface::asBinder(s.client);
            if (binder != NULL) {
                String16 desc(binder->getInterfaceDescriptor());
                if (desc == ISurfaceComposerClient::descriptor) {
                if (binder->queryLocalInterface(ISurfaceComposerClient::descriptor) != NULL) {
                    sp<Client> client( static_cast<Client *>(s.client.get()) );
                    transactionFlags |= setClientStateLocked(client, s.state);
                }