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

Issue 1856373004: Fix potential null pointer access in HTMLMediaElement::seek (Closed)

Created:
4 years, 8 months ago by pavor
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, Ken Russell (switch to Gerrit), mlamouri+watch-blink_chromium.org, philipj_slow, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix potential null pointer access in HTMLMediaElement::seek Additional check of m_webMediaPlayer for nullptr in case of a situation when ready state goes out of sync with m_webMediaPlayer. The real call sequence that results in error is unkown. BUG=600958 R=liberato@chromium.org,mlamouri@chromium.org Committed: https://crrev.com/e0dc013c18f0cd16f9cd72004043900152a324eb Cr-Commit-Position: refs/heads/master@{#396098}

Patch Set 1 #

Total comments: 8

Patch Set 2 : correct review comments #

Total comments: 1

Patch Set 3 : remove HTMLMediaElementTest #

Patch Set 4 : Fix potential null pointer in HTMLMediaElement::seek #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 29 (10 generated)
pavor
4 years, 8 months ago (2016-04-06 10:34:02 UTC) #1
liberato (no reviews please)
(+philipj) thanks -fl https://codereview.chromium.org/1856373004/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1856373004/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode1692 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:1692: if (m_readyState == HAVE_NOTHING) would it ...
4 years, 8 months ago (2016-04-06 14:58:05 UTC) #4
philipj_slow
https://codereview.chromium.org/1856373004/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1856373004/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode1692 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:1692: if (m_readyState == HAVE_NOTHING) On 2016/04/06 14:58:05, liberato wrote: ...
4 years, 8 months ago (2016-04-06 15:08:01 UTC) #5
philipj_slow
Also, can you fix the description to not include "crbug-600958" and instead say something about ...
4 years, 8 months ago (2016-04-06 15:09:30 UTC) #6
Ken Russell (switch to Gerrit)
I'm not a good reviewer for this change. Attempting to remove myself.
4 years, 8 months ago (2016-04-06 22:12:48 UTC) #7
pavor
On 2016/04/06 15:08:01, philipj_slow wrote: > https://codereview.chromium.org/1856373004/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp > File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): > > https://codereview.chromium.org/1856373004/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode1692 > ...
4 years, 7 months ago (2016-05-12 12:03:22 UTC) #9
pavor
https://codereview.chromium.org/1856373004/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1856373004/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode2140 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:2140: if (webMediaPlayer()) On 2016/04/06 15:08:01, philipj wrote: > Have ...
4 years, 7 months ago (2016-05-12 12:03:36 UTC) #10
liberato (no reviews please)
lgtm, though i'm not an owner of HTMLMediaElement. +mlamouri, who is. thanks -fl https://codereview.chromium.org/1856373004/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File ...
4 years, 7 months ago (2016-05-18 17:27:54 UTC) #12
mlamouri (slow - plz ping)
Thanks for the test! Though, I'm worried that a unit test might be biased because ...
4 years, 7 months ago (2016-05-19 13:13:03 UTC) #13
pavor
On 2016/05/19 13:13:03, Mounir Lamouri wrote: > Thanks for the test! Though, I'm worried that ...
4 years, 7 months ago (2016-05-19 13:37:26 UTC) #14
pavor
On 2016/05/18 17:27:54, liberato wrote: > lgtm, though i'm not an owner of HTMLMediaElement. > ...
4 years, 7 months ago (2016-05-19 13:47:22 UTC) #15
mlamouri (slow - plz ping)
I think the unit test is not correct because it is testing things using private ...
4 years, 7 months ago (2016-05-20 12:48:35 UTC) #16
pavor
On 2016/05/20 12:48:35, Mounir Lamouri wrote: > I think the unit test is not correct ...
4 years, 7 months ago (2016-05-23 11:42:23 UTC) #17
mlamouri (slow - plz ping)
sgtm! Can you fix the CL description: - title should probably be something like "Fix ...
4 years, 7 months ago (2016-05-23 22:57:19 UTC) #18
pavor
On 2016/05/23 22:57:19, Mounir Lamouri (slow) wrote: > sgtm! > > Can you fix the ...
4 years, 7 months ago (2016-05-25 13:22:04 UTC) #21
mlamouri (slow - plz ping)
lgtm, thanks! :)
4 years, 7 months ago (2016-05-25 23:04:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1856373004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1856373004/60001
4 years, 7 months ago (2016-05-25 23:35:42 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-26 03:22:37 UTC) #27
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 03:24:46 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e0dc013c18f0cd16f9cd72004043900152a324eb
Cr-Commit-Position: refs/heads/master@{#396098}

Powered by Google App Engine
This is Rietveld 408576698