<?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>276306</bug_id>
          
          <creation_ts>2024-07-08 00:57:05 -0700</creation_ts>
          <short_desc>[JSC] RegExp range quantifier should allow 2^53 - 1</short_desc>
          <delta_ts>2024-07-14 18:03:45 -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="Sosuke Suzuki">sosuke</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashvayka</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2045034</commentid>
    <comment_count>0</comment_count>
    <who name="Sosuke Suzuki">sosuke</who>
    <bug_when>2024-07-08 00:57:05 -0700</bug_when>
    <thetext>According to the spec[1][2], the range quantifier (/a{n,m}/) allows values for n and m up to
    2^53 - 1. However, the current JSC does not allow numbers larger than UINT_MAX, so it throws a
    SyntaxError:
    
    ```
    new RegExp(&quot;a{9007199254740991}&quot;, &quot;u&quot;);
    // SyntaxError: Invalid regular expression: number too large in {} quantifier
    
    related test262: https://github.com/tc39/test262/blob/3a7a72aef5009eb22117231d40f9a5a66a9a595a/test/built-ins/RegExp/quantifier-integer-limit.js
    
    [1]: https://tc39.es/ecma262/#prod-QuantifierPrefix
    [2]: https://tc39.es/ecma262/#prod-DecimalDigits</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045036</commentid>
    <comment_count>1</comment_count>
    <who name="Sosuke Suzuki">sosuke</who>
    <bug_when>2024-07-08 02:17:24 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/30559</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2046182</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-07-14 11:05:07 -0700</bug_when>
    <thetext>Committed 280953@main (712efd266cc9): &lt;https://commits.webkit.org/280953@main&gt;

Reviewed commits have been landed. Closing PR #30559 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2046183</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-07-14 11:06:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/131710011&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2046198</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Shvayka">ashvayka</who>
    <bug_when>2024-07-14 18:03:45 -0700</bug_when>
    <thetext>*** Bug 209573 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>