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

Issue 2316333003: Fix sandbox::PolicyBase leak (Closed)

Created:
4 years, 3 months ago by jbauman
Modified:
4 years, 3 months ago
CC:
chromium-reviews, jam, pennymac+watch_chromium.org, darin-cc_chromium.org, rickyz+watch_chromium.org, wfh+watch_chromium.org, cpu_(ooo_6.6-7.5)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix sandbox::PolicyBase leak StartSandboxedProcess was missing a Release call, so this was always leaking. Use scoped_refptr instead to fix that and prevent it from happening in the future. TBR=piman@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Committed: https://crrev.com/b6a4ff86c730756a73d63cc882ef818fb7818a53 Cr-Commit-Position: refs/heads/master@{#417313}

Patch Set 1 #

Patch Set 2 : add override #

Patch Set 3 : avoid using RefCountedThreadSafe #

Total comments: 1

Patch Set 4 : switch back to start with refcount 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -41 lines) Patch
M content/common/sandbox_init_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/sandbox_win.cc View 6 chunks +8 lines, -7 lines 0 comments Download
M sandbox/win/sandbox_poc/main_ui_window.cc View 2 chunks +1 line, -2 lines 0 comments Download
M sandbox/win/src/broker_services.h View 1 chunk +2 lines, -2 lines 0 comments Download
M sandbox/win/src/broker_services.cc View 1 2 3 7 chunks +11 lines, -9 lines 0 comments Download
M sandbox/win/src/policy_target_test.cc View 1 2 10 chunks +12 lines, -12 lines 0 comments Download
M sandbox/win/src/sandbox.h View 3 chunks +3 lines, -2 lines 0 comments Download
M sandbox/win/tests/common/controller.h View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/win/tests/common/controller.cc View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 34 (20 generated)
jbauman
4 years, 3 months ago (2016-09-07 22:39:43 UTC) #9
jbauman
4 years, 3 months ago (2016-09-07 22:39:44 UTC) #10
Will Harris
thanks for doing this. Will review soon. as an aside, looks a lot like https://codereview.chromium.org/1378523002/
4 years, 3 months ago (2016-09-07 22:44:52 UTC) #11
jbauman
On 2016/09/07 22:44:52, Will Harris wrote: > thanks for doing this. > > Will review ...
4 years, 3 months ago (2016-09-07 23:13:52 UTC) #14
Will Harris
I think cpu really disliked the refcount starting at 0. https://codereview.chromium.org/1456663003#msg11 I'm not sure what ...
4 years, 3 months ago (2016-09-07 23:28:33 UTC) #16
jbauman
On 2016/09/07 23:28:33, Will Harris wrote: > I think cpu really disliked the refcount starting ...
4 years, 3 months ago (2016-09-07 23:35:45 UTC) #17
cpu_(ooo_6.6-7.5)
Yeah this comes back every year. I feel strongly that refcounting should start at 1. ...
4 years, 3 months ago (2016-09-08 00:18:51 UTC) #19
jbauman
On 2016/09/08 00:18:51, cpu wrote: > Yeah this comes back every year. I feel strongly ...
4 years, 3 months ago (2016-09-08 00:35:06 UTC) #22
Will Harris
lgtm
4 years, 3 months ago (2016-09-08 00:48:04 UTC) #23
jbauman
Also FYI, I think the original Release() call was removed in https://codereview.chromium.org/1415483008 .
4 years, 3 months ago (2016-09-08 00:53:36 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2316333003/60001
4 years, 3 months ago (2016-09-08 16:41:23 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-08 16:45:58 UTC) #31
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/b6a4ff86c730756a73d63cc882ef818fb7818a53 Cr-Commit-Position: refs/heads/master@{#417313}
4 years, 3 months ago (2016-09-08 16:48:07 UTC) #33
pastarmovj
4 years, 1 month ago (2016-10-26 18:23:58 UTC) #34
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2453053002/ by pastarmovj@chromium.org.

The reason for reverting is: The change breaks Chrome on RDP like WIndows
Terminal Services Published Apps or Citrix ZenApp..

Powered by Google App Engine
This is Rietveld 408576698