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

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

Created:
4 years, 3 months ago by jbauman
Modified:
4 years, 3 months ago
Reviewers:
piman
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2840
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 Review-Url: https://codereview.chromium.org/2316333003 Cr-Commit-Position: refs/heads/master@{#417313} (cherry picked from commit b6a4ff86c730756a73d63cc882ef818fb7818a53) BUG=646167 Committed: https://chromium.googlesource.com/chromium/src/+/dcd4529eb3a14c7107e9775801db57f3dc198cdc

Patch Set 1 #

Total comments: 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 7 chunks +11 lines, -9 lines 1 comment Download
M sandbox/win/src/policy_target_test.cc View 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: 4 (1 generated)
jbauman
Committed patchset #1 (id:1) manually as dcd4529eb3a14c7107e9775801db57f3dc198cdc.
4 years, 3 months ago (2016-09-13 21:56:44 UTC) #2
piman
lgtm https://codereview.chromium.org/2331343004/diff/1/sandbox/win/src/broker_services.cc File sandbox/win/src/broker_services.cc (right): https://codereview.chromium.org/2331343004/diff/1/sandbox/win/src/broker_services.cc#newcode149 sandbox/win/src/broker_services.cc:149: // PolicyBase starts with refcount 1. nit: could ...
4 years, 3 months ago (2016-09-13 22:29:07 UTC) #3
jbauman
4 years, 3 months ago (2016-09-13 22:36:02 UTC) #4
Message was sent while issue was closed.
On 2016/09/13 22:29:07, piman OOO back 2016-09-12 wrote:
> lgtm
> 
>
https://codereview.chromium.org/2331343004/diff/1/sandbox/win/src/broker_serv...
> File sandbox/win/src/broker_services.cc (right):
> 
>
https://codereview.chromium.org/2331343004/diff/1/sandbox/win/src/broker_serv...
> sandbox/win/src/broker_services.cc:149: // PolicyBase starts with refcount 1.
> nit: could we fix that?

cpu@ was not a fan of changing that, so I didn't bother. You can see the
discussion in https://codereview.chromium.org/2316333003#msg19

Powered by Google App Engine
This is Rietveld 408576698