| commit | ecbf337873a8b19a21cea2510f2ec25dfd07bf91 | [log] [tgz] |
|---|---|---|
| author | Kelsen Liu <kelsenliu@chromium.org> | Sat Dec 13 06:15:00 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Dec 13 06:15:00 2025 |
| tree | ec897a7424c4f695c6cabca903713cfbf3019f7e | |
| parent | 6073b07c22b7596e682002728f995afa33c2589d [diff] |
Add GetSharedMemoryAsSpan() to avoid unsafe buffer usage This CL adds CommonDecoder::GetSharedMemoryAsSpan() and Buffer::GetSpanData() to return base::span<uint8_t> instead of raw pointers, and removes UNSAFE_TODO markers. Bug: 40284755 Change-Id: Iada475a7855330e9dcf8010b220d2f707fe0af48 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7225876 Commit-Queue: kelsen liu <kelsenliu@chromium.org> Reviewed-by: Kyle Charbonneau <kylechar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1558408}
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.