diff options
author | Fabien Sanglard <sanglardf@google.com> | 2017-02-02 01:41:34 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-02-02 01:41:34 +0000 |
commit | ebbf8a6b5ab37ba7e51ce159db33d7b1fa170f72 (patch) | |
tree | 740c2c8992325a5c43cdd6bb10b42b93a705fab9 | |
parent | abe293b9508d82de9a161279ab0a7c57196b3842 (diff) | |
parent | cca3b79c3259eee98f27e7b5f1634de6b49cc902 (diff) | |
download | native-ebbf8a6b5ab37ba7e51ce159db33d7b1fa170f72.tar.gz |
Fix security vulnerability am: 2ae83f4f62 am: 11ab583834 am: ac2b87ac0f am: 132d0f2aef am: 3995674f24 am: c7892d9d0b
am: cca3b79c32
Change-Id: I2e5da5ee33eb2757f360881e6ecc7dfd9fb67938
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index fdc36505cf..9c0305d92f 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -2134,8 +2134,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); } |