⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 271261 in webkit


Ignore:
Timestamp:
Jan 7, 2021, 2:40:14 PM (6 years ago)
Author:
eric.carlson@apple.com
Message:

[MSE] Fix potential crash in SourceBufferPrivateAVFObjC::destroyParser
https://bugs.webkit.org/show_bug.cgi?id=220434

Reviewed by Jer Noble.

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

(WebCore::SourceBufferPrivateAVFObjC::destroyParser): NULL-check
m_mediaSource->player() before using it.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r271254 r271261  
     12021-01-07  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [MSE] Fix potential crash in SourceBufferPrivateAVFObjC::destroyParser
     4        https://bugs.webkit.org/show_bug.cgi?id=220434
     5
     6        Reviewed by Jer Noble.
     7
     8        * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
     9        (WebCore::SourceBufferPrivateAVFObjC::destroyParser): NULL-check
     10        m_mediaSource->player() before using it.
     11
    1122021-01-07  Fujii Hironori  <Hironori.Fujii@sony.com>
    213
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm

    r270807 r271261  
    625625        return;
    626626#if HAVE(AVSTREAMSESSION) && ENABLE(LEGACY_ENCRYPTED_MEDIA)
    627     if (m_mediaSource && m_mediaSource->player()->hasStreamSession())
     627    if (m_mediaSource && m_mediaSource->player() && m_mediaSource->player()->hasStreamSession())
    628628        [m_mediaSource->player()->streamSession() removeStreamDataParser:parser];
    629629#endif
Note: See TracChangeset for help on using the changeset viewer.