commit | b1355cdffe82c1fb6f7c0cc4904042538aa4a3c5 | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@chromium.org> | Thu Mar 02 21:57:55 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 02 21:57:55 2023 |
tree | 2150109bd00e33a68fabe8a7b8cad00600ae40e8 | |
parent | 1ff04cbb53bff1cc3185c373b0f824fdd0dc2417 [diff] |
Catch negative length StringPiece without base::CheckedNumeric<size_t> Abseil has a rough analog of this check, but it checks against PTRDIFF_MAX instead. I believe that would have been equally effective at catching negative lengths, and avoid diverging from the STL. libc++ doesn't have this check either (https://github.com/llvm/llvm-project/issues/61100), but I think we have a better shot at getting that check in. Also it at least means we can align with absl::string_view. Bug: 1385166, 691162 Change-Id: Ibef0cab48b593c4f6a614e10df78f10bacf79f57 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4300852 Reviewed-by: Will Harris <wfh@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Peter Kasting <pkasting@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Commit-Queue: David Benjamin <davidben@chromium.org> Cr-Commit-Position: refs/heads/main@{#1112463}
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.