<?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>202150</bug_id>
          
          <creation_ts>2019-09-24 10:39:41 -0700</creation_ts>
          <short_desc>[JSC] Null dereference in propagateTransitions</short_desc>
          <delta_ts>2019-09-26 11:09:08 -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 Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>202122</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=200983</see_also>
          <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="Antonio Groza">antoniogroza</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>mark.lam</cc>
    
    <cc>prti</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1573695</commentid>
    <comment_count>0</comment_count>
    <who name="Antonio Groza">antoniogroza</who>
    <bug_when>2019-09-24 10:39:41 -0700</bug_when>
    <thetext>Hello, 
While fuzzing JSC i have found a test case that is able to reproduce the following issue: https://bugs.webkit.org/show_bug.cgi?id=200983 .

function hax() {
for (const v3 in &quot;AAAAAAAAAAA&quot;) {
    const v4 = createGlobalObject();
    with (v4) {
        v4.b = parseInt;
        v4.length = v3;
        const v6 = new Uint16Array();
    }
}
}

hax();

Execute it on an ASAN build of JSC with the following options to repro: 

./jsc --useConcurrentJIT=false --useConcurrentGC=false --thresholdForJITSoon=10 --thresholdForJITAfterWarmUp=10 --thresholdForOptimizeAfterWarmUp=100 --thresholdForOptimizeAfterLongWarmUp=100 --thresholdForOptimizeAfterLongWarmUp=100 --thresholdForFTLOptimizeAfterWarmUp=1000 --thresholdForFTLOptimizeSoon=1000 --gcAtEnd=true poc.js</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574243</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-25 15:26:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/55721330&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574540</commentid>
    <comment_count>2</comment_count>
    <who name="Tadeu Zagallo">tzagallo</who>
    <bug_when>2019-09-26 11:09:08 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 202122 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>