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

Issue 515753002: Verify promise type before casting. (Closed)

Created:
6 years, 3 months ago by jrummell
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Verify promise type before casting. If a CDM calls the wrong Resolved() method to resolve a promise, the promise is cast to the wrong type and causes a crash. This fixes the problem by verifying that the promise is the correct type before casting it. BUG=408319 TEST=existing EME tests pass Committed: https://crrev.com/ddb0fcf8e56749647a5b41ac16c5f3b26e6962e1 Cr-Commit-Position: refs/heads/master@{#292440}

Patch Set 1 #

Total comments: 6

Patch Set 2 : nits #

Patch Set 3 : compiler issues #

Patch Set 4 : compiler changes #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -50 lines) Patch
M content/renderer/pepper/content_decryptor_delegate.cc View 1 1 chunk +16 lines, -9 lines 0 comments Download
M media/base/cdm_promise.h View 1 2 3 3 chunks +42 lines, -14 lines 0 comments Download
M media/base/cdm_promise.cc View 1 2 3 3 chunks +63 lines, -27 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
jrummell
jrummell@chromium.org changed reviewers: + ddorwin@chromium.org, xhwang@chromium.org
6 years, 3 months ago (2014-08-27 22:15:34 UTC) #1
jrummell
PTAL.
6 years, 3 months ago (2014-08-27 22:15:34 UTC) #2
jrummell
jrummell@chromium.org changed reviewers: + dmichael@chromium.org
6 years, 3 months ago (2014-08-27 22:18:13 UTC) #3
jrummell
+dmichael@ for content/renderer/pepper/content_decryptor_delegate.cc. This is part of https://codereview.chromium.org/496143002/ pulled out separately (and already reviewed by ...
6 years, 3 months ago (2014-08-27 22:18:13 UTC) #4
ddorwin
lgtm Thanks.
6 years, 3 months ago (2014-08-27 22:36:08 UTC) #5
xhwang
lgtm with nits https://codereview.chromium.org/515753002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/515753002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc#newcode635 content/renderer/pepper/content_decryptor_delegate.cc:635: } nit: A simpler version: if ...
6 years, 3 months ago (2014-08-27 22:49:26 UTC) #6
jrummell
Updated. https://codereview.chromium.org/515753002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/515753002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc#newcode635 content/renderer/pepper/content_decryptor_delegate.cc:635: } On 2014/08/27 22:49:26, xhwang wrote: > nit: ...
6 years, 3 months ago (2014-08-27 23:05:13 UTC) #7
dmichael (off chromium)
rubber-stamp lgtm
6 years, 3 months ago (2014-08-27 23:05:18 UTC) #8
jrummell
The CQ bit was checked by jrummell@chromium.org
6 years, 3 months ago (2014-08-27 23:09:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/515753002/20001
6 years, 3 months ago (2014-08-27 23:12:07 UTC) #10
jrummell
The CQ bit was checked by jrummell@chromium.org
6 years, 3 months ago (2014-08-28 17:02:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/515753002/60001
6 years, 3 months ago (2014-08-28 17:03:29 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-28 17:58:14 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 18:31:06 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/8109) win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/10514)
6 years, 3 months ago (2014-08-28 18:31:06 UTC) #15
jrummell
The CQ bit was checked by jrummell@chromium.org
6 years, 3 months ago (2014-08-28 18:31:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/515753002/60001
6 years, 3 months ago (2014-08-28 18:33:20 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 93a0981d0f978776075c6d589ec69c125e75e9c6
6 years, 3 months ago (2014-08-28 19:19:05 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:01:28 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ddb0fcf8e56749647a5b41ac16c5f3b26e6962e1
Cr-Commit-Position: refs/heads/master@{#292440}

Powered by Google App Engine
This is Rietveld 408576698