summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueue.cpp
diff options
context:
space:
mode:
author Robert Carr <racarr@google.com> 2019-04-02 16:31:39 -0700
committer Robert Carr <racarr@google.com> 2019-04-05 09:21:29 -0700
commit4293e9d75d5b0d033126f529ab61dd1f4a8d8420 (patch)
treede561d03f17b200afad30b6b8d5058d595058566 /libs/gui/BufferQueue.cpp
parent866455f07c21964af5c195709bc2081121965200 (diff)
SurfaceFlinger: Validate layers before casting.
Reinterpret casting random IBinder = no-fun. I first attempted to use inheritance of "getInterfaceDescriptor" in Layer::Handle but departing from "standard-layout" (e.g. using virtual methods) means that downcasting with static/reinterpret_cast is no longer valid. Instead I opted for the pattern the system-server uses of maintaing a map. Bug: 129768960 Test: InvalidHandles_test.cpp Change-Id: Ica8d08a2daf5e80d187e818adbff0c7901db69f7
Diffstat (limited to 'libs/gui/BufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions