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

Issue 936333005: ScriptRunner: ASSERT -> RELEASE_ASSERT. (Closed)

Created:
5 years, 10 months ago by marja
Modified:
5 years, 10 months ago
Reviewers:
haraken, sof
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

ScriptRunner: ASSERT -> RELEASE_ASSERT_WITH_SECURITY_IMPLICATION. We've had a couple of corner case bugs where some elaborately malicious script moving behavior will confuse ScriptRunner & upper layers. In those cases, a ScriptLoader is assocated w/ ScriptRunner SR1 whereas we expect it to be associated w/ ScriptRunner SR2. SR2 will never notice anything, the ScriptLoader is destroyed but SR1 still refers to it, and when SR1 is destroyed, it will cause a use-after-free when it tries to detach the ScriptLoader. Normal pages should never bump into this. R=sigbjornf@opera.com, haraken@chromium.org BUG=460426 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190600

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M Source/core/dom/ScriptRunner.cpp View 1 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
marja
ptal I suggest we try this for a while in M42, then see whether it's ...
5 years, 10 months ago (2015-02-20 10:25:44 UTC) #1
sof
lgtm, but might the stronger RELEASE_ASSERT() be in order?
5 years, 10 months ago (2015-02-20 10:56:52 UTC) #2
marja
On 2015/02/20 10:56:52, sof wrote: > lgtm, but might the stronger RELEASE_ASSERT() be in order? ...
5 years, 10 months ago (2015-02-20 11:03:47 UTC) #3
sof
On 2015/02/20 11:03:47, marja wrote: > On 2015/02/20 10:56:52, sof wrote: > > lgtm, but ...
5 years, 10 months ago (2015-02-20 11:10:01 UTC) #4
marja
On 2015/02/20 11:10:01, sof wrote: > On 2015/02/20 11:03:47, marja wrote: > > On 2015/02/20 ...
5 years, 10 months ago (2015-02-20 11:12:50 UTC) #5
sof
On 2015/02/20 11:12:50, marja wrote: > On 2015/02/20 11:10:01, sof wrote: > > On 2015/02/20 ...
5 years, 10 months ago (2015-02-20 12:05:16 UTC) #6
haraken
LGTM
5 years, 10 months ago (2015-02-20 20:14:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/936333005/20001
5 years, 10 months ago (2015-02-20 20:15:44 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-21 00:32:33 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190600

Powered by Google App Engine
This is Rietveld 408576698