commit | b328e290f12184fd06f9aab121764e44ed94cb85 | [log] [tgz] |
---|---|---|
author | Mike Ma <yanmin@google.com> | Wed Mar 18 01:52:36 2020 -0700 |
committer | Mike Ma <yanmin@google.com> | Wed Mar 18 11:43:15 2020 -0700 |
tree | 2e7d33c21f8a41bff77f9c79c3867e7474bc3253 | |
parent | 4af44ac0ef5d6757cdec9a2ff1490f4120e86a20 [diff] |
Fix incidentd stack use-after-return The detached thread may live longer than the caller, and then "data" goes out of scope. Fix it by managing data using a strong pointer. Fixes: 151335416 Test: turn on hwasan, tweak WorkerThreadSection timeout, verify no hwasan error Change-Id: I179204b17c381e4e920b9aee07900150d9497639