commit | 9c41221206e0d57f702c5dd5eb1e133a21afb736 | [log] [tgz] |
---|---|---|
author | Janis Danisevskis <jdanis@google.com> | Fri Nov 09 07:51:56 2018 -0800 |
committer | Janis Danisevskis <jdanis@google.com> | Fri Nov 09 10:49:55 2018 -0800 |
tree | 84a1f8995d0396025065ce0575b82ac8122277f6 | |
parent | f1d854616ed20cdd0b33e7f393be398d55d08cc1 [diff] |
Removed unsafe use of hidl_vec<>.setToExternal hidl_vec objects that do not own their associated buffer are highly unsafe in multithreaded environments where move semantic is used to transfer ownership between threads. With keystore transitioning to a multi threaded execution model we can no longer use this optimization safely. Bug: 111443219 Test: Ran full keystore cts test suite. Change-Id: I9a366fc7df5dfee508dc092855545963ef6d9665