commit | 521a165cc86cf091072e4ed569b1dcdd78b92077 | [log] [tgz] |
---|---|---|
author | Ali Juma <ajuma@chromium.org> | Fri Sep 10 19:17:11 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 10 19:17:11 2021 |
tree | 94807cce540703e890b60d5e1943006f0394d698 | |
parent | 23c061137baf83bad78bbfa40c30f1e46669f85c [diff] |
[iOS] Fix PasswordSpecFetcher on ASan builds When PasswordSpecFetcher receives data as NSData*, it uses the underlying data as a const char* that is passed to base::Base64Decode. However, this data is not null-terminated, so Base64Decode will keep reading past the end of this array until a null character happens to be reached. This causes PasswordSpecFetcherTest.DefaultSpecInvalidFetch to fail on the ios-asan bot. This CL safely converts the received data into a StringPiece with a specific size, fixing the ASan failure. Bug: 1248514 Change-Id: I83d441d00f58b9ca8f53990c31ef448d7b602608 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3152561 Reviewed-by: Rohit Rao <rohitrao@chromium.org> Commit-Queue: Ali Juma <ajuma@chromium.org> Cr-Commit-Position: refs/heads/main@{#920320}
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.