commit | 854e71aa33201b4d5054af340d3bbcc14fd9e4b6 | [log] [tgz] |
---|---|---|
author | Ken Rockot <rockot@google.com> | Fri Aug 26 17:02:24 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 26 17:02:24 2022 |
tree | 4f89a9ef3092dbb2ffd3db305139db60c2a0c089 | |
parent | bc29f0a2de2a917a790479b5949f671330ac5fd6 [diff] |
ipcz: Fix portal transmission in parcels This corrects two bugs in remote portal transmission: - A TOCTOU bug where we were reading back a serialized RouterDescriptor for input to some computations after transmitting the parcel. This is corrected by serializing the descriptors into local memory first and then copying them into the outgoing message. The local copy is used for subsequent computations. - An accounting error where portal serialization could go out of bounds of the destination RouterDescriptor storage, because descriptor storage was indexed by overall object attachment index rather than portal index. The first case was already racy and covered by existing tests. A new test is added to cover the second issue. Bug: 1299283 Change-Id: I81c9b200d05a14b1ef06f14b01db47361005bed3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3856791 Reviewed-by: Robert Sesek <rsesek@chromium.org> Commit-Queue: Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/main@{#1039841}
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.