[MacRuby-devel] [MacRuby] #749: Regexp issues / crashes affecting StringScanner (was: StringScanner doesn't match properly.)
MacRuby
ruby-noreply at macosforge.org
Fri Jun 18 12:52:30 PDT 2010
#749: Regexp issues / crashes affecting StringScanner
------------------------------------+---------------------------------------
Reporter: kitchen.andy@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone: MacRuby 0.7
Component: MacRuby | Keywords:
------------------------------------+---------------------------------------
Old description:
> StringScanner fails to match a certain regular expressions properly.
> and diverges from MRI.
New description:
StringScanner fails to match a certain regular expressions properly.
and diverges from MRI.
[EDIT] See comments.
--
Comment(by martinlagardette@…):
Infinite loop uses this loop:
{{{
#!ruby
while ss.skip_until(/class(?![^ \n])|def(?![^ \n])/)
}}}
The segfault one is the same with the addition of surrounding parenthesis:
{{{
#!ruby
while ss.skip_until(/(class(?![^ \n])|def(?![^ \n]))/)
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/749#comment:2>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list