commit | b82ccd54e8b0ffabd50398595d9aefd7d2787e57 | [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 | ced211f6ddd51378b9df64cc61bb4714f28c522c [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