<?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>16323</bug_id>
          
          <creation_ts>2007-12-06 01:14:12 -0800</creation_ts>
          <short_desc>Regexp functions fail silently when stack limit is exceeded</short_desc>
          <delta_ts>2009-06-26 18:18:32 -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>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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 name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>dmandelin</cc>
    
    <cc>ggaren</cc>
    
    <cc>jwalden+bwo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63438</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-06 01:14:12 -0800</bug_when>
    <thetext>Regexp functions fail silently when stack limit is exceeded

var re = new RegExp(&quot;(\cd{4,}|[(\u006c)]*?)*&quot;, &quot;imy&quot;);
&quot;foo&quot;.match(re);

All this does is print:
jsRegExpExecute failed with result -5

To the console.  I would have expected it to throw an exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63477</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-06 08:25:53 -0800</bug_when>
    <thetext>What does Firefox or MSIE do in this case?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63481</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-12-06 08:39:25 -0800</bug_when>
    <thetext>Changing this will be very simple once we decide what behavior we want.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63546</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-06 16:21:30 -0800</bug_when>
    <thetext>Actually this same regexp fails that way:

var re = new RegExp(&quot;(a*)*&quot;);
&quot;a&quot;.match(re);

Which it shouldn&apos;t.  This is a bug in our regexp correctness.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>