diff options
| author | 2017-02-02 01:36:33 +0000 | |
|---|---|---|
| committer | 2017-02-02 01:36:33 +0000 | |
| commit | c7892d9d0bfcfb356614bb652548d34bec85b628 (patch) | |
| tree | 2eb2209af6578ad92a538b306de878a2c94559db | |
| parent | 13c5c34e6ef3e44a18dd8b6c742bad5852486457 (diff) | |
| parent | 3995674f2457c457839cea8aeabc14432512e8e6 (diff) | |
Fix security vulnerability am: 2ae83f4f62 am: 11ab583834 am: ac2b87ac0f am: 132d0f2aef
am: 3995674f24
Change-Id: I979af2b40c8ee1b3820204cee5fa7e21e4906bf9
| -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 80d3cc2c32..079b840be3 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -2026,8 +2026,7 @@ void SurfaceFlinger::setTransactionState( if (s.client != NULL) { sp<IBinder> binder = s.client->asBinder(); 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); } |