Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(727)

Issue 71013004: Base: Remove Receive() from ScopedHandle. (Closed)

Created:
7 years, 1 month ago by rvargas (doing something else)
Modified:
7 years ago
CC:
chromium-reviews, amit, yoshiki+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, grt+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, dcaiafa+watch_chromium.org, wez+watch_chromium.org, sanjeevr, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, sergeyu+watch_chromium.org, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, robertshield, alexeypa+watch_chromium.org
Visibility:
Public.

Description

Base: Remove Receive() from ScopedHandle. In general, the OS API contract doesn't guarantee that output variables are not modified on failure, so a Reeceive pattern is fundamentally insecure. BUG=318531 TEST=current tests tbr'ing owners for the consumers. TBR=jvoung@chromium.org, thakis@chromium.org, sergeyu@chromium.org, grt@chromium.org, gene@chromium.org, youngki@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237459 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237675

Patch Set 1 #

Patch Set 2 : Fix NaCl #

Patch Set 3 : Fix browser tests #

Patch Set 4 : ScopedProcessInfo #

Total comments: 2

Patch Set 5 : Add constructor #

Total comments: 2

Patch Set 6 : Avoid use of Set() #

Patch Set 7 : rebase #

Patch Set 8 : Remove a new Receive #

Patch Set 9 : rebase #

Patch Set 10 : Fix chrome_frame_net_tests #

Patch Set 11 : Fix delegate_execute for google_chrome_build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -242 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M base/memory/shared_memory_unittest.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -5 lines 0 comments Download
M base/process/launch.h View 2 chunks +2 lines, -1 line 0 comments Download
M base/process/launch_win.cc View 1 2 3 4 8 chunks +17 lines, -9 lines 0 comments Download
M base/win/scoped_handle.h View 2 chunks +0 lines, -26 lines 0 comments Download
D base/win/scoped_handle_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -31 lines 0 comments Download
M base/win/scoped_process_information.h View 1 2 3 4 1 chunk +1 line, -24 lines 0 comments Download
M base/win/scoped_process_information.cc View 1 2 3 4 4 chunks +9 lines, -11 lines 0 comments Download
M base/win/scoped_process_information_unittest.cc View 1 2 3 8 chunks +21 lines, -14 lines 0 comments Download
M base/win/startup_information_unittest.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_process_launcher_win.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/first_run/upgrade_util_win.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/installer/setup/setup_util.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/installer/setup/setup_util_unittest.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/installer/test/alternate_version_generator.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/installer/util/google_update_util.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/ui/ui_test_suite.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome_frame/ready_mode/internal/registry_ready_mode_state.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome_frame/test/chrome_frame_test_utils.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome_frame/test_utils.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download
M cloud_print/service/win/chrome_launcher.cc View 1 2 3 4 3 chunks +7 lines, -6 lines 0 comments Download
M cloud_print/virtual_driver/win/install/setup.cc View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/sandbox_win.cc View 1 2 3 4 5 4 chunks +11 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_task_manager_win.cc View 1 chunk +3 lines, -1 line 0 comments Download
M net/base/net_util_win.cc View 2 chunks +12 lines, -2 lines 0 comments Download
M printing/backend/win_helper.h View 2 chunks +3 lines, -6 lines 0 comments Download
M remoting/host/desktop_session_proxy.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M remoting/host/setup/daemon_installer_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/win/chromoting_module.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/host/win/launch_process_with_token.cc View 1 2 3 4 5 5 chunks +10 lines, -8 lines 0 comments Download
M remoting/host/win/unprivileged_process_delegate.cc View 1 2 3 4 5 5 chunks +15 lines, -8 lines 0 comments Download
M remoting/host/win/worker_process_launcher_unittest.cc View 1 2 3 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M remoting/host/win/wts_session_process_delegate.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/win/src/Wow64.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M sandbox/win/src/job_unittest.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M sandbox/win/src/policy_target_test.cc View 1 2 3 4 3 chunks +11 lines, -4 lines 0 comments Download
M sandbox/win/src/process_policy_test.cc View 1 2 3 4 5 5 chunks +14 lines, -10 lines 0 comments Download
M sandbox/win/src/restricted_token_utils.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/win/src/target_process.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M tools/gn/function_exec_script.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M win8/delegate_execute/chrome_util.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -5 lines 0 comments Download
M win8/delegate_execute/command_execute_impl.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M win8/test/metro_registration_helper.cc View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
rvargas (doing something else)
Please take a look.
7 years, 1 month ago (2013-11-15 22:17:51 UTC) #1
cpu_(ooo_6.6-7.5)
slogging thru gigantic CL but happy to see it. https://codereview.chromium.org/71013004/diff/250001/base/process/launch_win.cc File base/process/launch_win.cc (right): https://codereview.chromium.org/71013004/diff/250001/base/process/launch_win.cc#newcode171 base/process/launch_win.cc:171: ...
7 years, 1 month ago (2013-11-20 02:17:15 UTC) #2
rvargas (doing something else)
https://codereview.chromium.org/71013004/diff/250001/base/process/launch_win.cc File base/process/launch_win.cc (right): https://codereview.chromium.org/71013004/diff/250001/base/process/launch_win.cc#newcode171 base/process/launch_win.cc:171: process_info.Set(temp_process_info); On 2013/11/20 02:17:16, cpu wrote: > can we ...
7 years, 1 month ago (2013-11-20 20:30:45 UTC) #3
cpu_(ooo_6.6-7.5)
otherwise lgtm https://codereview.chromium.org/71013004/diff/740001/chrome/installer/setup/setup_util_unittest.cc File chrome/installer/setup/setup_util_unittest.cc (right): https://codereview.chromium.org/71013004/diff/740001/chrome/installer/setup/setup_util_unittest.cc#newcode66 chrome/installer/setup/setup_util_unittest.cc:66: token.Set(temp_handle); and for ScopedHandle too?
7 years, 1 month ago (2013-11-22 02:42:52 UTC) #4
rvargas (doing something else)
thanks https://codereview.chromium.org/71013004/diff/740001/chrome/installer/setup/setup_util_unittest.cc File chrome/installer/setup/setup_util_unittest.cc (right): https://codereview.chromium.org/71013004/diff/740001/chrome/installer/setup/setup_util_unittest.cc#newcode66 chrome/installer/setup/setup_util_unittest.cc:66: token.Set(temp_handle); On 2013/11/22 02:42:53, cpu wrote: > and ...
7 years ago (2013-11-25 19:53:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/990001
7 years ago (2013-11-25 19:53:56 UTC) #6
commit-bot: I haz the power
Failed to apply patch for components/nacl/browser/nacl_process_host.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years ago (2013-11-25 19:54:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/1080001
7 years ago (2013-11-26 02:09:15 UTC) #8
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=38080
7 years ago (2013-11-26 02:29:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/1080001
7 years ago (2013-11-26 02:41:37 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=228909
7 years ago (2013-11-26 05:01:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/1100001
7 years ago (2013-11-26 22:15:32 UTC) #12
commit-bot: I haz the power
Change committed as 237459
7 years ago (2013-11-27 01:03:48 UTC) #13
hashimoto
A revert of this CL has been created in https://codereview.chromium.org/90963002/ by hashimoto@chromium.org. The reason for ...
7 years ago (2013-11-27 08:21:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/1120001
7 years ago (2013-11-27 21:26:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/1120001
7 years ago (2013-11-28 01:18:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/1120001
7 years ago (2013-11-28 02:00:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/1120001
7 years ago (2013-11-28 02:21:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/1120001
7 years ago (2013-11-28 02:27:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/1120001
7 years ago (2013-11-28 02:59:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/71013004/1120001
7 years ago (2013-11-28 03:29:23 UTC) #21
commit-bot: I haz the power
7 years ago (2013-11-28 05:17:06 UTC) #22
Message was sent while issue was closed.
Change committed as 237675

Powered by Google App Engine
This is Rietveld 408576698