Changeset 196083 in webkit


Ignore:
Timestamp:
Feb 3, 2016 2:59:39 PM (8 years ago)
Author:
jer.noble@apple.com
Message:

[EME][Mac] MediaKeys.createSession() fails with initData containing a contentId whose length is > 1/2 the initData.
https://bugs.webkit.org/show_bug.cgi?id=153517
<rdar://problem/24303782>

Reviewed by Eric Carlson.

The length of contentId is given in bytes, not Uint16 characters. Use the former when extracting
the contentId string from the initData.

  • platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:

(WebCore::MediaPlayerPrivateAVFoundation::extractKeyURIKeyIDAndCertificateFromInitData):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r196082 r196083  
     12016-02-03  Jer Noble  <jer.noble@apple.com>
     2
     3        [EME][Mac] MediaKeys.createSession() fails with initData containing a contentId whose length is > 1/2 the initData.
     4        https://bugs.webkit.org/show_bug.cgi?id=153517
     5        <rdar://problem/24303782>
     6
     7        Reviewed by Eric Carlson.
     8
     9        The length of contentId is given in bytes, not Uint16 characters. Use the former when extracting
     10        the contentId string from the initData.
     11
     12        * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
     13        (WebCore::MediaPlayerPrivateAVFoundation::extractKeyURIKeyIDAndCertificateFromInitData):
     14
    1152016-02-03  Jer Noble  <jer.noble@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp

    r195951 r196083  
    10431043        return false;
    10441044
    1045     RefPtr<Uint16Array> keyIDArray = Uint16Array::create(initDataBuffer, offset, keyIDLength);
     1045    RefPtr<Uint8Array> keyIDArray = Uint8Array::create(initDataBuffer, offset, keyIDLength);
    10461046    if (!keyIDArray)
    10471047        return false;
Note: See TracChangeset for help on using the changeset viewer.