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:16:32 +0000 (01:16 +0000)
commit12bafe205c236da50f34ed85adf62a5631525ab6
tree1d44ca8393fca2a293f15a41ae47cdb37109b750
parent12a01ba5f4f3f8ba122dfbf689e976019f353b3d
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