commit | d6f9d8583f1f8791456d89e9252d8fa0374b69bb | [log] [tgz] |
---|---|---|
author | Alex Light <allight@google.com> | Thu Jan 25 11:26:28 2018 -0800 |
committer | Alex Light <allight@google.com> | Thu Feb 01 13:52:53 2018 -0800 |
tree | f491bfa983265c42f4594c04770fdee0eba6a712 | |
parent | 92d0c8b68c24a2fa21f95d63a1ff2fb00fdb9aaf [diff] |
Fix UAF error caught by asan We were 'delete'ing the AdbConnectionState while it still had a thread running. To fix this we moved responsibility for deleting the AdbConnectionState to the thread that makes use of it (if it was, in fact, created). Test: Build and boot device with adbconnection Change-Id: I9f33a308d9b56a33c155b37dd86749d5a765809c