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

Issue 14829006: Use after free in WebCore::dispatchEditableContentChangedEvents (Closed)

Created:
7 years, 7 months ago by Will Harris
Modified:
7 years, 7 months ago
Reviewers:
eseidel, inferno
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

dispatchEvent call can execute javascript and blow away endRoot from underneath. Make the argument startRoot and endRoot as PassRefPtr. BUG=237429 TEST=webkit/tools/layout_tests/run_webkit_tests.sh editing/undo/undo-after-setting-value.html editing/undo/undo-after-event-edited.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150380

Patch Set 1 #

Patch Set 2 : add test for dispatchEvent UAF #

Total comments: 33

Patch Set 3 : fix formatting. remove unneeded exception handlers. simplify calculations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -1 line) Patch
A LayoutTests/editing/undo/undo-after-event-edited.html View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/editing/undo/undo-after-event-edited-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/Editor.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Will Harris
please add any blink reviewers if needed...?
7 years, 7 months ago (2013-05-10 09:50:34 UTC) #1
aarya
lgtm
7 years, 7 months ago (2013-05-10 13:42:13 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wfh@chromium.org/14829006/1
7 years, 7 months ago (2013-05-10 13:42:36 UTC) #3
inferno
lgtm
7 years, 7 months ago (2013-05-10 13:46:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wfh@chromium.org/14829006/1
7 years, 7 months ago (2013-05-10 14:01:32 UTC) #5
inferno
I updated the description and subject. Please use detailed description so that someone can look ...
7 years, 7 months ago (2013-05-10 14:06:30 UTC) #6
eseidel
not lgtm w/o a test.
7 years, 7 months ago (2013-05-10 17:11:07 UTC) #7
eseidel
If this can't be tested (or not reasonably within our tools), that's fine, but we ...
7 years, 7 months ago (2013-05-10 17:13:05 UTC) #8
inferno
On 2013/05/10 17:11:07, Eric Seidel wrote: > not lgtm w/o a test. This crash came ...
7 years, 7 months ago (2013-05-10 17:16:00 UTC) #9
eseidel
Historically we've held the position that if it's not tested, it's broken. :) Obviously with ...
7 years, 7 months ago (2013-05-10 17:21:28 UTC) #10
eseidel
Anyway, as noted above, I'm not going to stand in the way here. Feel free ...
7 years, 7 months ago (2013-05-10 17:23:03 UTC) #11
Will Harris
On 2013/05/10 17:23:03, Eric Seidel wrote: > Anyway, as noted above, I'm not going to ...
7 years, 7 months ago (2013-05-10 17:28:32 UTC) #12
inferno
On 2013/05/10 17:28:32, Will Harris wrote: > On 2013/05/10 17:23:03, Eric Seidel wrote: > > ...
7 years, 7 months ago (2013-05-10 17:36:00 UTC) #13
commit-bot: I haz the power
Retried try job too often on mac_layout for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout&number=1730
7 years, 7 months ago (2013-05-10 21:38:42 UTC) #14
Will Harris
Added a minimized test - still needs two interleaved callbacks to reliably hit so the ...
7 years, 7 months ago (2013-05-14 17:44:27 UTC) #15
inferno
https://codereview.chromium.org/14829006/diff/25001/LayoutTests/editing/undo/undo-after-event-edited.html File LayoutTests/editing/undo/undo-after-event-edited.html (right): https://codereview.chromium.org/14829006/diff/25001/LayoutTests/editing/undo/undo-after-event-edited.html#newcode1 LayoutTests/editing/undo/undo-after-event-edited.html:1: <head> Please add <!DOCTYPE html> and <html> opening, closing ...
7 years, 7 months ago (2013-05-14 18:00:00 UTC) #16
Will Harris
fix formatting. remove unneeded exception handlers. simplify calculations. https://codereview.chromium.org/14829006/diff/25001/LayoutTests/editing/undo/undo-after-event-edited.html File LayoutTests/editing/undo/undo-after-event-edited.html (right): https://codereview.chromium.org/14829006/diff/25001/LayoutTests/editing/undo/undo-after-event-edited.html#newcode1 LayoutTests/editing/undo/undo-after-event-edited.html:1: <head> ...
7 years, 7 months ago (2013-05-14 22:25:54 UTC) #17
inferno
lgtm
7 years, 7 months ago (2013-05-14 22:33:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wfh@chromium.org/14829006/30001
7 years, 7 months ago (2013-05-14 22:34:02 UTC) #19
commit-bot: I haz the power
7 years, 7 months ago (2013-05-15 00:07:42 UTC) #20
Message was sent while issue was closed.
Change committed as 150380

Powered by Google App Engine
This is Rietveld 408576698