commit | 607fd5424a6e3ebb1acfc60bcd0cc411209d3c6d | [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 | 5d664874ec0a20f58e6edb114fb9502b7465f81e | |
parent | 40a8b07e4dd786a445648deded7a4ecac5acc81e [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