| commit | 12f70ccfc2a36db6eb369bcd2f3ea3eb00d90d2c | [log] [tgz] |
|---|---|---|
| author | Saho Kobayashi <sahok@google.com> | Thu Dec 15 03:34:56 2022 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 15 03:34:56 2022 |
| tree | a18a6b11f1049c08df6b745e3e3e049c9a9a063a | |
| parent | 6a9120cbfc9a0a634c205592b29f74a18d0e8286 [diff] |
use checked_cast rather than static_cast for int --> size_t
It's safer to use base::checked_cast<> rather than static_cast<> for the
conversion from int to size_t.
This is follow up CL for crrev.com/c/4082546/
BUG=none
TEST= testing/xvfb.py out_xz/Debug/unit_tests \
--gtest_filter="*SingleFileTarReaderTest*"
TEST= testing/xvfb.py out_xz/Debug/unit_tests \
--gtest_filter="*SingleFileTarXzFileExtractorTest*"
TEST= testing/xvfb.py out_xz/Debug/browser_tests \
--gtest_filter="*ExtractorBrowserTest*"
Change-Id: Ifd15b9cbb82d304a40d17330deae191095a57ebe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4105402
Reviewed-by: Noel Gordon <noel@chromium.org>
Commit-Queue: Saho Kobayashi <sahok@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1083544}
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.