[webkit-changes] [WebKit/WebKit] d8823f: [GStreamer] Avoid crashes on caps generated from u...

Xabier Rodríguez noreply at github.com
Fri Dec 16 05:57:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d8823f0e52f5e83c8bc3796fba52414f88f7af1b
      https://github.com/WebKit/WebKit/commit/d8823f0e52f5e83c8bc3796fba52414f88f7af1b
  Author: Xabier Rodriguez-Calvar <calvaris at igalia.com>
  Date:   2022-12-16 (Fri, 16 Dec 2022)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp

  Log Message:
  -----------
  [GStreamer] Avoid crashes on caps generated from user input
https://bugs.webkit.org/show_bug.cgi?id=249466

Reviewed by Philippe Normand.

When checking if certain mime is supported, we create the caps from it and if caps creation fails because input is
bogus, we can get a controlled crash later. With this patch, if we can't create the caps, we bail out more gracefully.

* Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp:
(WebCore::GStreamerRegistryScanner::ElementFactories::hasElementForMediaType const):

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




More information about the webkit-changes mailing list