commit | 7570bea23af7583c82dbe92682c2518b0dcb5e99 | [log] [tgz] |
---|---|---|
author | wangguibo <wangguibo@xiaomi.com> | Sat Jan 22 16:01:18 2022 +0800 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Fri Feb 11 19:18:16 2022 +0000 |
tree | 4fcae1ae55719bace9272aab4c295cf7e5f9fe50 | |
parent | aff7a6ecc3c223de73f92c3f54577625b40636d0 [diff] |
Avoid Use-After-Free risk when dump backtrace for long contending lock. The Thread::SetCustomTLS() will delete old data, should use old DumpStackLastTimeTLSData if it exists, to avoid Use-After-Free risk in case of concurrent access. Bug: 215794097 Test: HWASAN test Signed-off-by: wangguibo <wangguibo@xiaomi.com> Change-Id: If6e3660b179ddcaed8dd0e03179e49b21abc88fb