OSDN Git Service

Fix SF security vulnerability: 32660278
authorFabien Sanglard <sanglardf@google.com>
Tue, 8 Nov 2016 23:31:32 +0000 (15:31 -0800)
committerFabien Sanglard <sanglardf@google.com>
Wed, 9 Nov 2016 00:08:45 +0000 (00:08 +0000)
commit2d8a2432e04234d9edbb3b099f9bbbaa36ad4843
tree90cf5c62826432e9e9e4493adf154e634af007ff
parente6bbe69ba739c8a08837134437aaccfea5f1d943
Fix SF security vulnerability: 32660278

Because of lack of mutex lock when get mSidebandStream, if one thread
getSidebandStream, another thread setSidebandStream frequently, an UAF
will be triggered.

Bug: 32660278
Test: Marlin device with poc
Change-Id: Idbcf0976ce2db682d0f13455105c45a5c7481a45
libs/gui/BufferQueueConsumer.cpp