<?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>242599</bug_id>
          
          <creation_ts>2022-07-11 12:26:59 -0700</creation_ts>
          <short_desc>[AArch32][Aarch64] ASSERTION FAILED variant.intrinsic() == NoIntrinsic in void JSC::DFG::ByteCodeParser::handleGetById</short_desc>
          <delta_ts>2022-07-12 14:43:20 -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>JavaScriptCore</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="Mikhail R. Gadelha">mikhail</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1882089</commentid>
    <comment_count>0</comment_count>
      <attachid>460795</attachid>
    <who name="Mikhail R. Gadelha">mikhail</who>
    <bug_when>2022-07-11 12:26:59 -0700</bug_when>
    <thetext>Created attachment 460795
Testcase

Found by Igalia Fuzzing Campaign.

The attached test case fails with the following message:

ASSERTION FAILED: variant.intrinsic() == NoIntrinsic
WebKit//Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp(4788) : void JSC::DFG::ByteCodeParser::handleGetById(JSC::VirtualRegister, JSC::SpeculatedType, JSC::DFG::Node*, JSC::CacheableIdentifier, unsigned int, JSC::GetByStatus, JSC::AccessType, JSC::BytecodeIndex)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882090</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-11 12:27:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/96836847&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882501</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-07-12 13:30:22 -0700</bug_when>
    <thetext>This is stale assertion. Let&apos;s drop it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882503</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-07-12 13:32:04 -0700</bug_when>
    <thetext>Previously all intrinsic getters are handled. So at this point, it should be NoIntrinsic.
But 4GB wasm array work added a case which can fail.

But then, we should just continue using this generic path, invoking a getter. Thus, this assertion is stale. Let&apos;s just remove it.

And marking it non-security since the solution is just removing this assertion and this is debug assertion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882525</commentid>
    <comment_count>4</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-07-12 13:49:23 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/2333</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882614</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-07-12 14:43:17 -0700</bug_when>
    <thetext>Committed 252391@main (1f3e8b70b999): &lt;https://commits.webkit.org/252391@main&gt;

Reviewed commits have been landed. Closing PR #2333 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>460795</attachid>
            <date>2022-07-11 12:26:59 -0700</date>
            <delta_ts>2022-07-11 12:26:59 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>testcase.js</filename>
            <type>text/javascript</type>
            <size>134</size>
            <attacher name="Mikhail R. Gadelha">mikhail</attacher>
            
              <data encoding="base64">dHJ5IHsKICBfX2ZfMih7fSkKfSBjYXRjaCB7Cn0KZnVuY3Rpb24gX19mXzIoX192XzIzKSB7IF9f
dl8yMy5ieXRlT2Zmc2V0IH0KdHJ5IHsKICBmb3IgKDs7KQogICAgX19mXzIobmV3IEJpZ0ludDY0
QXJyYXkpCn0gY2F0Y2ggewp9Cgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>