OSDN Git Service

Fix issue #27252896: Security Vulnerability -- weak binder
authorDianne Hackborn <hackbod@google.com>
Mon, 21 Mar 2016 17:36:54 +0000 (10:36 -0700)
committerSuprabh Shukla <suprabh@google.com>
Wed, 23 Mar 2016 01:22:23 +0000 (01:22 +0000)
commitce156f60adb32c7cbebe50e313f51e564f93fe99
treec3464fa089886032f36f308298d68df75e056a05
parente98a9a910692cf7dee3bac2b58cf5f08c59db38f
Fix issue #27252896: Security Vulnerability -- weak binder

Sending transaction to freed BBinder through weak handle
can cause use of a (mostly) freed object.  We need to try to
safely promote to a strong reference first.

Change-Id: Ic9c6940fa824980472e94ed2dfeca52a6b0fd342
(cherry picked from commit c11146106f94e07016e8e26e4f8628f9a0c73199)
libs/binder/IPCThreadState.cpp