summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2018-04-25 08:56:41 -0700
committerLuis Hector Chavez <lhchavez@google.com>2018-04-26 13:53:35 -0700
commit9a388d53872f51daac16454cb7218e32ca368d3f (patch)
tree59b5aa67b0cf8b563dd52bde7c1c86e76d268bd1 /trusty/coverage/coverage_test.cpp
parent56fe753070043a9a645ad002bad19ca2ae829cc2 (diff)
adb: Make the Connection object a std::shared_ptr
This change is in preparation to allow the TCP-based transports to be able to reconnect. This is needed because multiple threads can access the Connection object. It used to be safe to do because one instance of atransport would have the same Connection instance throughout its lifetime, but now it is possible to replace the Connection instance, which could cause threads that were attempting to Write to an atransport* to use-after-free the Connection instance. Bug: 74411879 Test: system/core/adb/test_adb.py Change-Id: I4f092be11b2095088a9a9de2c0386086814d37ce
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions