#749: Regexp issues / crashes affecting StringScanner
------------------------------------+---------------------------------------
 Reporter:  kitchen.a...@…          |       Owner:  lsansone...@…        
     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 martinlagarde...@…):

 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/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to