Avoid raw pointers to traceable type in LineFlexer Traceable types (like FlexItem) are allocated on the GCed heap and can be reclaimed by the GC. Keeping a raw pointer to them off stack (e.g. the backing store of Vector) may lead to use-after-free. This CL avoid the raw pointers by keeping vectors of indices in the original vector, rather than vectors of pointers. Bug: 329102390 Change-Id: I823ebb2e9c0f6d1af1653b71d33e1466922d682f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6973558 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Omer Katz <omerkatz@chromium.org> Cr-Commit-Position: refs/heads/main@{#1519223}
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.