commit | 3f53bf0525bd5c21ff6cc3235b93cb26a7866ea8 | [log] [tgz] |
---|---|---|
author | Kathan Shukla <kathan@google.com> | Thu Oct 22 12:08:22 2020 -0700 |
committer | Kathan Shukla <kathan@google.com> | Wed Nov 04 11:25:55 2020 -0800 |
tree | 9b11e2b342f32f5bf20d5b6bef4146bd5b736a67 | |
parent | 43ff73f9890a46405bc7cc6b0591bc626e095361 [diff] |
Grpc Graph - fix use after free GrpcGraph initializes StreamSetObserver - which triggers a thread to notify GrpcGraph of termination. If GrpcGraph is destroyed, this will result in use after free. Fix this by enforcing that GrpcGraph object is not destroyed before StreamSetObserver. Bug: 170407229 Test: build, unit test and fuzz test Change-Id: I8b24f72af60c441ebd7a31939769c46589431cfe Merged-In: I8b24f72af60c441ebd7a31939769c46589431cfe
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.