commit | 20dc5a0ef85e4e1ea8c665ffb83270353cd6fa34 | [log] [tgz] |
---|---|---|
author | Ryan Zuklie <rzuklie@google.com> | Mon Jul 10 17:18:27 2023 -0700 |
committer | Ryan Zuklie <rzuklie@google.com> | Mon Jul 10 17:18:27 2023 -0700 |
tree | 7d45f2fc3a2b3581f4ed90687e8791a2f32498ad | |
parent | 8abd1be52109461d66b2a479eea4041571906ad9 [diff] |
Ensure locked Perfetto handle is non-null. Although the time between when Trace starts and GetDataSourceLocked is called is small, it's still possible for the handle to be invalidated between those two points in time. Check validity prior to use. Test: atest libnetworkstats_test bug: 289476598 Change-Id: Ie4b3d65178e6ca24382efde3f38162f332144e81