summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2023-05-11 21:00:36 +0000
committer Steven Moreland <smoreland@google.com> 2023-05-11 21:04:02 +0000
commit8c656c6c9f9c855818ecf2df92ba38193114fa30 (patch)
tree2de5cb371522cb72ef1716d764a69002de02597d /libs/gui/BufferQueueThreadState.cpp
parent71ea90d35134e972978f92add142857a10104552 (diff)
libbinder_ndk_unit_test: show cookie can own data
The existing example is dangerous because it gives the death recipient ownership of data on the stack. If the test fails, then the callback would be referencing invalid stack data. Now, this example owns the cookie, so it is more clear how to have the cookie contain arbitrary additional data, and there is no longer a memory corruption issue if the test happened to fail. Fixes: 275407810 Test: libbinder_ndk_unit_test Change-Id: I2b2ce675d3fae7e033bd701208b095ebe14da1e5
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions