commit | e490fbb200ddc444667d4a701437c9292de797bb | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Dec 09 15:44:57 2019 -0800 |
committer | Josh Gao <jmgao@google.com> | Fri Dec 13 13:28:21 2019 -0800 |
tree | f3bddb64f36507476f1b747492c0a2f4f462263f | |
parent | 26fdcedbd2fdc46513ff5efaa1752ecad3bb1d8e [diff] |
adb: fix use after free of atransport. libadbd_auth might report authentication success for a transport that's already been destroyed. Fix this by storing a weak pointer to the atransport that gets cleared upon destruction instead of a raw pointer. Bug: http://b/144704376 Test: ./test_adb.py Test: ./test_device.py Change-Id: Idffe027381e6b2e37f06aa0166e97cafc98eaf3b