[webkit-changes] [WebKit/WebKit] d7a2a7: Fix bug in MediaFormatReader::copyTrackArray() fou...

Chris Dumez noreply at github.com
Thu Feb 2 19:33:51 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d7a2a7053e05b629fe7271bf8566c19200aa0903
      https://github.com/WebKit/WebKit/commit/d7a2a7053e05b629fe7271bf8566c19200aa0903
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  Changed paths:
    M Source/WebCore/PAL/pal/spi/cocoa/MediaToolboxSPI.h
    M Source/WebKit/Shared/mac/MediaFormatReader/MediaFormatReader.cpp

  Log Message:
  -----------
  Fix bug in MediaFormatReader::copyTrackArray() found by new libcpp assertions
https://bugs.webkit.org/show_bug.cgi?id=251617
rdar://104967552

Reviewed by Andy Estes and Jer Noble.

Dont dereference `m_parseTracksStatus` if the action was aborted, since
m_parseTracksStatus will be std::nullopt in this case.

* Source/WebKit/Shared/mac/MediaFormatReader/MediaFormatReader.cpp:
(WebKit::MediaFormatReader::copyTrackArray):

Canonical link: https://commits.webkit.org/259794@main




More information about the webkit-changes mailing list