commit | 6dc0899060e1b654af0b097b39f6c8c64f960ca0 | [log] [tgz] |
---|---|---|
author | Ken Rockot <rockot@google.com> | Thu Nov 01 03:32:56 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 01 03:32:56 2018 |
tree | 3194a97a2754edd58775c0e302374725ce0863f8 | |
parent | 68638d404b911ac4628124c83d9614e037a5e3b4 [diff] |
[mojo] Release sent handles earlier on Windows This releases HANDLE ownership *before* sending any handle in a message to a remote process, rather than after. Avoids an extremely subtle race between DuplicateHandle+DUPLICATE_CLOSE_SOURCE in the receiving process racing with ScopedHandle release in the sending process. The trade-off is the introduction of potential leaks which turn out to not really matter in any practical scenarios. Bug: 900655 Change-Id: Ieec82bb062bc66cdb3c732c920a220ea2aa2f8d0 Reviewed-on: https://chromium-review.googlesource.com/c/1310505 Commit-Queue: Ken Rockot <rockot@google.com> Reviewed-by: Joe Mason <joenotcharles@chromium.org> Cr-Commit-Position: refs/heads/master@{#604510}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .