Changeset 231872 in webkit


Ignore:
Timestamp:
May 16, 2018 2:23:29 PM (6 years ago)
Author:
jer.noble@apple.com
Message:

CRASH: Exception thrown from -[AVContentKeySession processContentKeyRequestWithIdentifier:initializationData:options:] after -expire called
https://bugs.webkit.org/show_bug.cgi?id=185690
<rdar://problem/38297768>

Reviewed by Eric Carlson.

Reject all calls to update() after close() has been called on the session.

  • platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm:

(WebCore::CDMSessionAVContentKeySession::update):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r231867 r231872  
     12018-05-16  Jer Noble  <jer.noble@apple.com>
     2
     3        CRASH: Exception thrown from -[AVContentKeySession processContentKeyRequestWithIdentifier:initializationData:options:] after -expire called
     4        https://bugs.webkit.org/show_bug.cgi?id=185690
     5        <rdar://problem/38297768>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Reject all calls to update() after close() has been called on the session.
     10
     11        * platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm:
     12        (WebCore::CDMSessionAVContentKeySession::update):
     13
    1142018-05-16  Andy VanWagoner  <andy@vanwagoner.family>
    215
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm

    r228218 r231872  
    238238    UNUSED_PARAM(nextMessage);
    239239
     240    if (m_stopped) {
     241        errorCode = MediaPlayer::InvalidPlayerState;
     242        return false;
     243    }
     244
    240245    bool shouldGenerateKeyRequest = !m_certificate || isEqual(key, "renew");
    241246    if (!m_certificate) {
Note: See TracChangeset for help on using the changeset viewer.