commit | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [log] [tgz] |
---|---|---|
author | Justin Novosad <junov@chromium.org> | Thu Nov 11 22:24:28 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Nov 11 22:24:28 2021 |
tree | cccfb7be281ca89f8682c144eac0d5d5559b2deb | |
parent | 3efccf664eae3ff767d51dc3bbca74c0ef4f9165 [diff] |
Fix dangerous lambda capture in BaseRenderingContext2D We had a lambda that was capturing a local variable by address in a context where it is possible for the lambda to be executed asynchronously. This could cause memory to be read after being popped off the stack. This is a quick bandaid solution. The more permanent solution is to refactor the code to use a pattern that avoids injecting capturing lambdas into WTF::Bind Callbacks that are executed asynchronously. BUG=1268448 Change-Id: I1b08392847e13f4039ec34eee6a66239096b1bf1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3276832 Commit-Queue: Justin Novosad <junov@chromium.org> Commit-Queue: Aaron Krajeski <aaronhk@chromium.org> Auto-Submit: Justin Novosad <junov@chromium.org> Reviewed-by: Aaron Krajeski <aaronhk@chromium.org> Cr-Commit-Position: refs/heads/main@{#940945}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.