summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Fabien Sanglard <sanglardf@google.com> 2017-02-02 01:36:33 +0000
committer android-build-merger <android-build-merger@google.com> 2017-02-02 01:36:33 +0000
commitc7892d9d0bfcfb356614bb652548d34bec85b628 (patch)
tree2eb2209af6578ad92a538b306de878a2c94559db
parent13c5c34e6ef3e44a18dd8b6c742bad5852486457 (diff)
parent3995674f2457c457839cea8aeabc14432512e8e6 (diff)
Fix security vulnerability am: 2ae83f4f62 am: 11ab583834 am: ac2b87ac0f am: 132d0f2aef
am: 3995674f24 Change-Id: I979af2b40c8ee1b3820204cee5fa7e21e4906bf9
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp3
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);
}