Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3b3afcc8898eacb52e0f7fe1f4e66fe171681362
      
https://github.com/WebKit/WebKit/commit/3b3afcc8898eacb52e0f7fe1f4e66fe171681362
  Author: Andy Estes <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to