[webkit-changes] [WebKit/WebKit] 3b3afc: Crash in ISOProtectionSystemSpecificHeaderBox::par...

aestes noreply at github.com
Fri Jun 16 14:02:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3b3afcc8898eacb52e0f7fe1f4e66fe171681362
      https://github.com/WebKit/WebKit/commit/3b3afcc8898eacb52e0f7fe1f4e66fe171681362
  Author: Andy Estes <aestes at apple.com>
  Date:   2023-06-16 (Fri, 16 Jun 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/iso/ISOProtectionSystemSpecificHeaderBox.cpp

  Log Message:
  -----------
  Crash in ISOProtectionSystemSpecificHeaderBox::parse with large keyID counts
https://bugs.webkit.org/show_bug.cgi?id=258174
rdar://110412566

Reviewed by Jean-Yves Avenard.

KeyID is 16 bytes, so it's possible for a `pssh` box to specify a `keyIDCount` large enough that the
following keyIDs array cannot be contained by a Vector. To account for this, try to reserve capacity
for `keyIDCount` in m_keyIDs before resizing and return `false` if the reservation fails.

* Source/WebCore/platform/graphics/iso/ISOProtectionSystemSpecificHeaderBox.cpp:
(WebCore::ISOProtectionSystemSpecificHeaderBox::parse):

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




More information about the webkit-changes mailing list