<?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>127177</bug_id>
          
          <creation_ts>2014-01-17 09:53:23 -0800</creation_ts>
          <short_desc>Yarr interpreter reports non-match instead of throwing when bailing out</short_desc>
          <delta_ts>2014-01-17 11:42:12 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://bugzilla.mozilla.org/show_bug.cgi?id=953013</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="Till Schneidereit">till</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bzbarsky</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>969158</commentid>
    <comment_count>0</comment_count>
    <who name="Till Schneidereit">till</who>
    <bug_when>2014-01-17 09:53:23 -0800</bug_when>
    <thetext>The Yarr interpreter contains a limit on how many attempts are made to match disjunctions. When this limit is reached, a bailout with JSRegExpErrorHitLimit happens. This bubbles up and is returned as the result of JSC::Yarr::interpret, the caller of which treats it the same as JSRegExpNoMatch.

In SpiderMonkey, we changed things to throw an exception in this case; see the patch in the linked bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>969183</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-01-17 11:42:12 -0800</bug_when>
    <thetext>Note that this leads to incorrect behavior in Safari.  For example:

  /^a(\w+)+b/.test(&quot;axbxxxxxxxxxxxxxxxxxxxx&quot;)

returns false in Safari, whereas the correct value is true.  Chrome gets this right.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>