<?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>266249</bug_id>
          
          <creation_ts>2023-12-11 13:12:05 -0800</creation_ts>
          <short_desc>[Wasm-GC] Avoid spurious assertion in JSWebAssemblyArray::set</short_desc>
          <delta_ts>2024-01-05 18:13:20 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebAssembly</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Asumu Takikawa">asumu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1998772</commentid>
    <comment_count>0</comment_count>
    <who name="Asumu Takikawa">asumu</who>
    <bug_when>2023-12-11 13:12:05 -0800</bug_when>
    <thetext>Example code (contributed by Zalim Bashorov):

```
(module
        ;; Test with a subtype as well.
        (type (sub (array (mut i16))))
        (global (mut (ref null 0)) (ref.null 0))
        (func (export &quot;init&quot;)
          (global.set 0 (array.new 0 (i32.const 42) (i32.const 5)))
          (array.set 0 (global.get 0) (i32.const 3) (i32.and (i32.const 84) (i32.const 0xFFFF))))
        (func (export &quot;get&quot;) (param i32) (result i32)
          (array.get_u 0 (global.get 0) (local.get 0)))
      )
```

This currently crashes in debug builds due to a spurious assertion in the array.set implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998781</commentid>
    <comment_count>1</comment_count>
    <who name="Asumu Takikawa">asumu</who>
    <bug_when>2023-12-11 13:36:26 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21650</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2000508</commentid>
    <comment_count>2</comment_count>
    <who name="Asumu Takikawa">asumu</who>
    <bug_when>2023-12-18 13:11:56 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21926</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2000510</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-18 13:13:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/119830822&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003305</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-01-05 18:13:18 -0800</bug_when>
    <thetext>Committed 272719@main (1e4c23e67107): &lt;https://commits.webkit.org/272719@main&gt;

Reviewed commits have been landed. Closing PR #21650 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>