commit | e85c8c90b6bb6f01149cfa603c5472a082f2719a | [log] [tgz] |
---|---|---|
author | Hongchan Choi <[email protected]> | Mon Jul 15 17:32:24 2019 |
committer | Hongchan Choi <[email protected]> | Mon Jul 15 17:32:24 2019 |
tree | ad6081e0c7523a08b1a214f03b33289d56ecf824 | |
parent | 4d557a3e9e87627a202f35630b142e05d48d77c1 [diff] |
Avoid accessing context's fields after destruction AudioHandler::Context() returns an untraced raw pointer to the context so checking its value might be pointing some non-null garbage after the context is gone. In that case, invoking GetExecutionContext() might return a pointer to some random memory space. By checking a local flag on ExecutionContext's validity, we can avoid such memory access. (cherry picked from commit 2e0071db3e8af7c47a9962353913ffd7b7436e13) Bug: 977107 Test: ASAN build does not crash on a repro code with the fix. Change-Id: I19020e019cc3d9d52de3bebbe23129e7dd7b0a5e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1693163 Reviewed-by: Kentaro Hara <[email protected]> Commit-Queue: Hongchan Choi <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#676431} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1701610 Reviewed-by: Hongchan Choi <[email protected]> Cr-Commit-Position: refs/branch-heads/3809@{#843} Cr-Branched-From: d82dec1a818f378c464ba307ddd9c92133eac355-refs/heads/master@{#665002}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .