Evaluation of regular expression causes OEM
-------------------------------------------
Key: JRUBY-1550
URL: http://jira.codehaus.org/browse/JRUBY-1550
Project: JRuby
Issue Type: Bug
Components: Parser
Affects Versions: JRuby 1.1
Reporter: Gregory Murphy
Assignee: Thomas E Enebo
Priority: Critical
The following snippet of Ruby code, when run in native ruby, outputs the string
"xxx yyy zzz <a href='http://example.com'>ppp</a>":
s = "xxx yyy zzz <a href='<?url_for_show Page?>'>ppp</a>"
@view = s.gsub(/<\?url_for_(show|edit)\s+(([^?]*|\?[^>])*)\?>/) do
"http://example.com"
end
puts @view
When run in JRuby, the JVM goes into an infinite recursion, and runs out of
heap space.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email