Branch: refs/heads/webkitglib/2.48
  Home:   https://github.com/WebKit/WebKit
  Commit: 5223259452be664913b3b51d8085e3d56d8a3223
      
https://github.com/WebKit/WebKit/commit/5223259452be664913b3b51d8085e3d56d8a3223
  Author: Philippe Normand <[email protected]>
  Date:   2025-03-21 (Fri, 21 Mar 2025)

  Changed paths:
    M Source/WebCore/platform/audio/gstreamer/PlatformRawAudioDataGStreamer.cpp
    M Source/WebCore/platform/audio/gstreamer/PlatformRawAudioDataGStreamer.h

  Log Message:
  -----------
  Cherry-pick 292300@main (265e7f6062f7). 
https://bugs.webkit.org/show_bug.cgi?id=289946

    [GStreamer][WebCodecs] Improve robustness of AudioData handling
    https://bugs.webkit.org/show_bug.cgi?id=289946

    Reviewed by Xabier Rodriguez-Calvar.

    This patch fixes assertions/crashes in PlatformRawAudioDataGStreamer raised 
due to poor error
    handling and invalid input data.

    Co-authored-by: Frédéric Wang <[email protected]>

    * Source/WebCore/platform/audio/gstreamer/PlatformRawAudioDataGStreamer.cpp:
    (WebCore::PlatformRawAudioData::create): Return nullptr in case the audio 
info is invalid.
    (WebCore::PlatformRawAudioDataGStreamer::planesOfSamples): Return a nullopt 
if the GStreamer says
    the audio data is invalid.
    (WebCore::PlatformRawAudioData::copyTo): Return early if the audio data is 
invalid or if the size of
    the source buffer is smaller than the requested copyElementCount.
    * Source/WebCore/platform/audio/gstreamer/PlatformRawAudioDataGStreamer.h: 
Change signature to
    return an optional.

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

Canonical link: https://commits.webkit.org/290945.92@webkitglib/2.48



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to