diff options
| author | 2017-02-02 01:38:33 +0000 | |
|---|---|---|
| committer | 2017-02-02 01:38:33 +0000 | |
| commit | cca3b79c3259eee98f27e7b5f1634de6b49cc902 (patch) | |
| tree | c8eb308643b5b4cff3f6b85fd216cad4a797843c | |
| parent | 79b74d787daa32d5e5d191e653b011d45d7f846c (diff) | |
| parent | c7892d9d0bfcfb356614bb652548d34bec85b628 (diff) | |
Fix security vulnerability am: 2ae83f4f62 am: 11ab583834 am: ac2b87ac0f am: 132d0f2aef am: 3995674f24
am: c7892d9d0b
Change-Id: Ic59ba49542b907591f3e514ae0417ed82a5be7aa
| -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 de0f921e2b..e4c917a372 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -2111,8 +2111,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); } |