diff options
author | Fabien Sanglard <sanglardf@google.com> | 2017-02-02 01:43:34 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-02-02 01:43:34 +0000 |
commit | 5ba227f96ef1e16fce2af0222917490a71dfe039 (patch) | |
tree | a8f6491c80771e475c5971fb25edebf3228a5fc0 | |
parent | 02e4440eabb004f8d817599b68caf9dba7aa27bc (diff) | |
parent | ebbf8a6b5ab37ba7e51ce159db33d7b1fa170f72 (diff) | |
download | native-5ba227f96ef1e16fce2af0222917490a71dfe039.tar.gz |
Fix security vulnerability am: 2ae83f4f62 am: 11ab583834 am: ac2b87ac0f am: 132d0f2aef am: 3995674f24 am: c7892d9d0b am: cca3b79c32
am: ebbf8a6b5a
Change-Id: Id8c91e714058b999805aa6da613a4343fecc1d6a
-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); } |