Bug 220583 - [GStreamer][EME][Thunder] Bail out on failed response message for challenges
Summary: [GStreamer][EME][Thunder] Bail out on failed response message for challenges
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Xabier Rodríguez Calvar
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-01-13 01:55 PST by Xabier Rodríguez Calvar
Modified: 2021-01-13 04:53 PST (History)
7 users (show)

See Also:


Attachments
Patch (1.94 KB, patch)
2021-01-13 02:01 PST, Xabier Rodríguez Calvar
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xabier Rodríguez Calvar 2021-01-13 01:55:18 PST
[GStreamer][EME][Thunder] Bail out on failed response message for challenges
Comment 1 Xabier Rodríguez Calvar 2021-01-13 02:01:14 PST
Created attachment 417517 [details]
Patch
Comment 2 Philippe Normand 2021-01-13 03:52:42 PST
Comment on attachment 417517 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=417517&action=review

> Source/WebCore/platform/graphics/gstreamer/eme/CDMThunder.cpp:365
> +        ASSERT_NOT_REACHED();

How is this different from an ASSERT? In debug build you'll still crash here if the framework sent an empty message.
Comment 3 Xabier Rodríguez Calvar 2021-01-13 04:36:29 PST
(In reply to Philippe Normand from comment #2)
> Comment on attachment 417517 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=417517&action=review
> 
> > Source/WebCore/platform/graphics/gstreamer/eme/CDMThunder.cpp:365
> > +        ASSERT_NOT_REACHED();
> 
> How is this different from an ASSERT? In debug build you'll still crash here
> if the framework sent an empty message.

Cause there is a return and it won't crash in line 370.
Comment 4 EWS 2021-01-13 04:52:13 PST
Committed r271437: <https://trac.webkit.org/changeset/271437>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 417517 [details].
Comment 5 Radar WebKit Bug Importer 2021-01-13 04:53:13 PST
<rdar://problem/73147394>