<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>289974</bug_id>
          
          <creation_ts>2025-03-18 10:15:03 -0700</creation_ts>
          <short_desc>[GTK] Crash in WebCore::PlatformRawAudioDataGStreamer::duration()</short_desc>
          <delta_ts>2025-03-19 13:33:05 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>289946</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>pubmailaddr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>philn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2104082</commentid>
    <comment_count>0</comment_count>
      <attachid>474610</attachid>
    <who name="">pubmailaddr</who>
    <bug_when>2025-03-18 10:15:03 -0700</bug_when>
    <thetext>Created attachment 474610
testcase to trigger crash

Version: webkitgtk-2.48.0 (latest stable version)
OS: Linux/ubuntu
Step to reproduce:
1. build default version webkitgtk-2.48.0
2. Open the testcase 154.html attached below with webkitgtk Minibrowser
3. with several seconds, WebProcess would crash with Log Info：
** (MiniBrowser:2374592): WARNING **: 17:06:10.042: WebProcess CRASHED


Stacktrace:
addr2line: DWARF error: invalid or unhandled FORM value: 0x23
addr2line: DWARF error: invalid or unhandled FORM value: 0x23
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==2==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000048 (pc 0x7d74deefe0b5 bp 0x7ffc7665b3b0 sp 0x7ffc7665b370 T2)
==2==The signal is caused by a READ memory access.
==2==Hint: address points to the zero page.
==2==WARNING: invalid path to external symbolizer!
==2==WARNING: Failed to use and restart external symbolizer!
    #0 0x7d74deefe0b5 in WebCore::PlatformRawAudioDataGStreamer::duration() const UnifiedSource-3c72abbe-20.cpp:?
    #1 0x7d74dbd3d723 in WebCore::WebCodecsAudioData::duration() UnifiedSource-f8afad56-57.cpp:?
    #2 0x7d74dae46db3 in WebCore::jsWebCodecsAudioData_durationGetter(JSC::JSGlobalObject&amp;, WebCore::JSWebCodecsAudioData&amp;) UnifiedSource-3a52ce78-170.cpp:?
    #3 0x7d74dae13d7a in long WebCore::IDLAttribute&lt;WebCore::JSWebCodecsAudioData&gt;::get&lt;&amp;WebCore::jsWebCodecsAudioData_timestampGetter, (WebCore::CastedThisErrorBehavior)3&gt;(JSC::JSGlobalObject&amp;, long, JSC::PropertyName) UnifiedSource-3a52ce78-170.cpp:?
    #4 0x7d74dae13bc0 in long WebCore::IDLAttribute&lt;WebCore::JSWebCodecsAudioData&gt;::get&lt;&amp;WebCore::jsWebCodecsAudioData_durationGetter, (WebCore::CastedThisErrorBehavior)3&gt;(JSC::JSGlobalObject&amp;, long, JSC::PropertyName) UnifiedSource-3a52ce78-170.cpp:?
    #5 0x7d74ca3c280d in JSC::JSCustomGetterFunction::propertyName() const UnifiedSource-f2e18ffc-20.cpp:?
    #6 0x7d74ca7c2ade in JSC::PropertySlot::customGetter(JSC::VM&amp;, JSC::PropertyName) const ??:?
    #7 0x7d74c7da91a9 in JSC::JSCallbackObject&lt;JSC::JSAPIWrapperGlobalObject&gt;::asCallbackObject(long) JSAPIWrapperGlobalObject.cpp:?
    #8 0x7d74c7db4f26 in JSC::JSValue::get(JSC::JSGlobalObject*, JSC::PropertyName, JSC::PropertySlot&amp;) const JSCCallbackFunction.cpp:?
    #9 0x7d74c9dad671 in JSC::LLInt::performLLIntGetByID(JSC::BytecodeIndex, JSC::CodeBlock*, JSC::JSGlobalObject*, JSC::JSValue, JSC::Identifier const&amp;, JSC::GetByIdModeMetadata&amp;) UnifiedSource-6e4525b9-1.cpp:?
    #10 0x7d74c9dad396 in llint_slow_path_get_by_id UnifiedSource-6e4525b9-1.cpp:?
    #11 0x7d74c7cfe3e5 in llint_op_get_by_id LowLevelInterpreter.cpp:?

UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV (/home/rdfuzz/tmp/WebKit/WebKitBuild/GTK/Debug/lib/libwebkitgtk-6.0.so.4+0x11efe0b5) (BuildId: 43de4f3453231a55)
==2==ABORTING

** (MiniBrowser:2374592): WARNING **: 17:06:10.042: WebProcess CRASHED</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104443</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-03-19 13:25:34 -0700</bug_when>
    <thetext>Can you check if this happens with https://commits.webkit.org/292300@main ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104445</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-03-19 13:26:29 -0700</bug_when>
    <thetext>And please file security bugs for this type of fuzzing test-case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104447</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-03-19 13:33:05 -0700</bug_when>
    <thetext>With current main:

WARN         webkitaudiodata PlatformRawAudioDataGStreamer.cpp:84:create: Invalid audio info, unable to create AudioData for it

Closing.

*** This bug has been marked as a duplicate of bug 289946 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>474610</attachid>
            <date>2025-03-18 10:15:03 -0700</date>
            <delta_ts>2025-03-18 10:15:03 -0700</delta_ts>
            <desc>testcase to trigger crash</desc>
            <filename>154.html</filename>
            <type>text/html</type>
            <size>852</size>
            <attacher>pubmailaddr</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgogIDxzY3JpcHQ+CiAgICBmdW5jdGlvbiBqc2Z1enplcigpIHsKICAgICAg
dmFyMDU2NDAgPSB3aW5kb3cubGVuZ3RoOwogICAgICB2YXIwNTY2MSA9IG5ldyBYTUxIdHRwUmVx
dWVzdCgpOwogICAgICB2YXIwNTY2MCA9IHZhcjA1NjYxLnJlc3BvbnNlWE1MOwogICAgICB2YXIw
NTY1OSA9IGRvY3VtZW50Lm9wZW4oImh0bWx2YXIwMDAwOCIpOwogICAgICB2YXIwNTg1NiA9IGRv
Y3VtZW50LmNyZWF0ZUVsZW1lbnQoImlucHV0Iik7CiAgICAgIHZhcjA1ODcwID0gbmV3IFVpbnQx
NkFycmF5KDEwKTsKICAgICAgdmFyMDYwMjMgPSB7IGZvcm1hdDogJ3MzMi1wbGFuYXInLCBzYW1w
bGVSYXRlOiAwLjM5MTc1MjE4MDE4NjAxMjc3LCBudW1iZXJPZkZyYW1lczogdmFyMDU2NDAsIG51
bWJlck9mQ2hhbm5lbHM6IHZhcjA1NjQwLCB0aW1lc3RhbXA6IDAsIGRhdGE6IHZhcjA1ODcwIH07
CiAgICAgIHZhcjA2MDIyID0gbmV3IEF1ZGlvRGF0YSh2YXIwNjAyMyk7CiAgICAgIHZhcjA2MzUy
ID0gbmV3IEF1ZGlvQ29udGV4dCgpOwogICAgICB2YXIwNjM1NCA9IGRvY3VtZW50LmNyZWF0ZUVs
ZW1lbnQoInZpZGVvIik7CiAgICAgIHZhcjA2MzUzID0gdmFyMDYzNTQ7CiAgICAgIHZhcjA2MzUx
ID0gdmFyMDYzNTIuY3JlYXRlTWVkaWFFbGVtZW50U291cmNlKHZhcjA2MzUzKTsKICAgICAgdmFy
MDYwMjIudGltZXN0YW1wOwogICAgfQogIDwvc2NyaXB0Pgo8L2hlYWQ+Cgo8Ym9keSBvbmxvYWQ9
anNmdXp6ZXIoKT4KICA8c3R5bGUgaWQ9Imh0bWx2YXIwMDAxMCI+CiAgICBhCiAgPC9zdHlsZT4K
ICA8aWZyYW1lIGlkPSJodG1sdmFyMDAwMTEiPmI8L2lmcmFtZT4KPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>