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

Issue 195233003: Prevent destruction of self in SMILTimeContainer with 'discard' (Closed)

Created:
6 years, 9 months ago by fs
Modified:
6 years, 9 months ago
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), rwlbuis, kouhei+svg_chromium.org, dstockwell, Timothy Loh, krit, f(malita), gyuyoung.kim_webkit.org, darktears, Stephen Chennney, Steve Block, dino_apple.com, Eric Willigers
Visibility:
Public.

Description

Prevent destruction of self in SMILTimeContainer with 'discard' If discarding the <svg> root an animation update could end up destroying the SVGSVGElement owning the SMILTimeContainer, leading to use-after-free. Make sure to keep an additional reference to the owning SVGSVGElement across affected callsites. BUG=351316 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169239

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, --1 lines) Patch
A LayoutTests/svg/animations/discard-on-svg-crash-2.html View 1 chunk +19 lines, -0 lines 0 comments Download
A + LayoutTests/svg/animations/discard-on-svg-crash-2-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/svg/animation/SMILTimeContainer.cpp View 5 chunks +14 lines, -0 lines 2 comments Download

Messages

Total messages: 15 (0 generated)
fs
6 years, 9 months ago (2014-03-11 17:47:08 UTC) #1
kouhei (in TOK)
https://codereview.chromium.org/195233003/diff/1/Source/core/svg/animation/SMILTimeContainer.cpp File Source/core/svg/animation/SMILTimeContainer.cpp (right): https://codereview.chromium.org/195233003/diff/1/Source/core/svg/animation/SMILTimeContainer.cpp#newcode337 Source/core/svg/animation/SMILTimeContainer.cpp:337: DiscardScope discardScope(m_ownerSVGElement); Can we put this inside updateAnimationsAndScheduleFrameIfNeeded?
6 years, 9 months ago (2014-03-12 00:30:29 UTC) #2
fs
https://codereview.chromium.org/195233003/diff/1/Source/core/svg/animation/SMILTimeContainer.cpp File Source/core/svg/animation/SMILTimeContainer.cpp (right): https://codereview.chromium.org/195233003/diff/1/Source/core/svg/animation/SMILTimeContainer.cpp#newcode337 Source/core/svg/animation/SMILTimeContainer.cpp:337: DiscardScope discardScope(m_ownerSVGElement); On 2014/03/12 00:30:30, kouhei wrote: > Can ...
6 years, 9 months ago (2014-03-12 07:32:13 UTC) #3
pdr.
On 2014/03/12 07:32:13, fs wrote: > https://codereview.chromium.org/195233003/diff/1/Source/core/svg/animation/SMILTimeContainer.cpp > File Source/core/svg/animation/SMILTimeContainer.cpp (right): > > https://codereview.chromium.org/195233003/diff/1/Source/core/svg/animation/SMILTimeContainer.cpp#newcode337 > ...
6 years, 9 months ago (2014-03-13 07:07:23 UTC) #4
kouhei (in TOK)
On 2014/03/13 07:07:23, pdr wrote: > On 2014/03/12 07:32:13, fs wrote: > > > https://codereview.chromium.org/195233003/diff/1/Source/core/svg/animation/SMILTimeContainer.cpp ...
6 years, 9 months ago (2014-03-13 07:30:07 UTC) #5
fs
On 2014/03/13 07:07:23, pdr wrote: > On 2014/03/12 07:32:13, fs wrote: > > > https://codereview.chromium.org/195233003/diff/1/Source/core/svg/animation/SMILTimeContainer.cpp ...
6 years, 9 months ago (2014-03-13 10:06:43 UTC) #6
pdr.
On 2014/03/13 10:06:43, fs wrote: > On 2014/03/13 07:07:23, pdr wrote: > > On 2014/03/12 ...
6 years, 9 months ago (2014-03-13 18:42:50 UTC) #7
kouhei (in TOK)
lgtm
6 years, 9 months ago (2014-03-14 01:20:09 UTC) #8
fs
The CQ bit was checked by fs@opera.com
6 years, 9 months ago (2014-03-14 11:38:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/195233003/1
6 years, 9 months ago (2014-03-14 11:38:44 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 11:38:59 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on blink_presubmit
6 years, 9 months ago (2014-03-14 11:39:00 UTC) #12
fs
The CQ bit was checked by fs@opera.com
6 years, 9 months ago (2014-03-14 12:09:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/195233003/1
6 years, 9 months ago (2014-03-14 12:09:23 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-03-14 12:09:52 UTC) #15
Message was sent while issue was closed.
Change committed as 169239

Powered by Google App Engine
This is Rietveld 408576698