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

Issue 1055433003: Fix scoped_ptr free to use delete [] instead of delete. (Closed)

Created:
5 years, 8 months ago by Will Harris
Modified:
5 years, 8 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews, wfh+watch_chromium.org, rickyz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix scoped_ptr free to use delete [] instead of delete. BUG=101717 Committed: https://crrev.com/7804b679be3af7e24578394af0a85ba1249344a9 Cr-Commit-Position: refs/heads/master@{#324013}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -11 lines) Patch
M sandbox/win/src/win_utils.cc View 1 chunk +10 lines, -11 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Will Harris
PTAL. old bug :)
5 years, 8 months ago (2015-04-01 21:25:00 UTC) #2
Will Harris
On 2015/04/01 21:25:00, Will Harris wrote: > PTAL. old bug :) ping cpu@
5 years, 8 months ago (2015-04-03 02:50:35 UTC) #3
cpu_(ooo_6.6-7.5)
lgtm
5 years, 8 months ago (2015-04-07 01:45:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1055433003/1
5 years, 8 months ago (2015-04-07 02:34:33 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 8 months ago (2015-04-07 04:05:33 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/7804b679be3af7e24578394af0a85ba1249344a9 Cr-Commit-Position: refs/heads/master@{#324013}
5 years, 8 months ago (2015-04-07 04:06:21 UTC) #8
kcarattini
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1065833002/ by kcarattini@chromium.org. ...
5 years, 8 months ago (2015-04-07 06:59:32 UTC) #9
kcarattini
On 2015/04/07 06:59:32, kcarattini wrote: > A revert of this CL (patchset #1 id:1) has ...
5 years, 8 months ago (2015-04-07 07:04:40 UTC) #10
Will Harris
5 years, 8 months ago (2015-04-08 00:09:55 UTC) #11
Message was sent while issue was closed.
On 2015/04/07 07:04:40, kcarattini wrote:
> On 2015/04/07 06:59:32, kcarattini wrote:
> > A revert of this CL (patchset #1 id:1) has been created in
> > https://codereview.chromium.org/1065833002/ by
mailto:kcarattini@chromium.org.
> > 
> > The reason for reverting is: It looks like this broke the following test on
XP
> > Tests (1):
> > sbox_unittests WinUtils.SameObject 
> > 
> > Example output:
> > WinUtils.SameObject (run #1):
> > [ RUN      ] WinUtils.SameObject
> >
>
c:\b\build\slave\win_builder\build\src\sandbox\win\src\win_utils_unittest.cc(78):
> > error: Value of: SameObject(file.Get(), file_name_nt1.c_str())
> >   Actual: false
> > Expected: true
> >
>
c:\b\build\slave\win_builder\build\src\sandbox\win\src\win_utils_unittest.cc(79):
> > error: Value of: SameObject(file.Get(), file_name_nt2.c_str())
> >   Actual: false
> > Expected: true
> > [  FAILED  ] WinUtils.SameObject (16 ms).
> 
> Example failure build:
>
https://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29/build...

It seems on Windows XP NtQueryObject returns STATUS_INFO_LENGTH_MISMATCH but
does not return the required size, contrary to MSDN docs.  This is probably why
the original code started by having an initial_buffer on the stack.  Oh, Windows
XP, can I count the number of ways I hate thee?

Powered by Google App Engine
This is Rietveld 408576698