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

Changeset 271437 in webkit


Ignore:
Timestamp:
Jan 13, 2021, 4:52:08 AM (6 years ago)
Author:
calvaris@igalia.com
Message:

[GStreamer][EME][Thunder] Bail out on failed response message for challenges
https://bugs.webkit.org/show_bug.cgi?id=220583

Reviewed by Philippe Normand.

When parsing the challenge message, sometimes the message length
is 0 and parsing fails. This should not happen in principle and
that's why we just asserted on that but it looks like the
framework is not as careful as expected here. Hence we need to
bail out to not crash in release mode.

  • platform/graphics/gstreamer/eme/CDMThunder.cpp:

(WebCore::CDMInstanceSessionThunder::challengeGeneratedCallback):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r271436 r271437  
     12021-01-13  Xabier Rodriguez Calvar  <calvaris@igalia.com>
     2
     3        [GStreamer][EME][Thunder] Bail out on failed response message for challenges
     4        https://bugs.webkit.org/show_bug.cgi?id=220583
     5
     6        Reviewed by Philippe Normand.
     7
     8        When parsing the challenge message, sometimes the message length
     9        is 0 and parsing fails. This should not happen in principle and
     10        that's why we just asserted on that but it looks like the
     11        framework is not as careful as expected here. Hence we need to
     12        bail out to not crash in release mode.
     13
     14        * platform/graphics/gstreamer/eme/CDMThunder.cpp:
     15        (WebCore::CDMInstanceSessionThunder::challengeGeneratedCallback):
     16
    1172021-01-13  Sergio Villar Senin  <svillar@igalia.com>
    218
  • trunk/Source/WebCore/platform/graphics/gstreamer/eme/CDMThunder.cpp

    r269103 r271437  
    361361{
    362362    ParsedResponseMessage parsedResponseMessage(buffer);
    363     ASSERT(parsedResponseMessage);
     363    if (!parsedResponseMessage) {
     364        GST_ERROR("response message parsing failed");
     365        ASSERT_NOT_REACHED();
     366        return;
     367    }
    364368
    365369    if (!m_challengeCallbacks.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.