commit | 9337567cd4a1e6bc367b6854ead7220531aab3bb | [log] [tgz] |
---|---|---|
author | mikt <mikt@google.com> | Fri Sep 08 18:38:17 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 08 18:38:17 2023 |
tree | fb8cd78a14f9dee0da9ce0aaf4dc7461eca1ba2c | |
parent | 0c9fd7972c9450a5f26f9e491b879c5b9e7722ad [diff] |
[MO] Define memory safety check control macro - Add `enum class base::internal::MemorySafetyCheck` - each enum item represents memory safety check, implemented in PA and UaF detector. - Add macro `ADVANCED_MEMORY_SAFETY_CHECKS()` - when used inside class declaration, it specifies a set of checks `base::internal::kAdvancedMemorySafetyChecks` enforced over that object type. - This macro will be used as a part of MiracleObject project, see the bug for the details. - Add following constexpr functions to determine enabled safety checks for type `T`. - `base::internal::get_memory_safety_checks<T>` - `base::internal::is_memory_safety_checked<T, Checks>` Bug: 1462223 Change-Id: I611a825d260705ed110932f08cbe756ab44ea7e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4664244 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Mikihito Matsuura <mikt@google.com> Cr-Commit-Position: refs/heads/main@{#1194241}
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.