[MacRuby] #1313: #to_json will cause a stack overflow if generating a collection with objective-c objects

MacRuby ruby-noreply at macosforge.org
Tue Jun 21 19:50:37 PDT 2011


#1313: #to_json will cause a stack overflow if generating a collection with
objective-c objects
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…         
     Type:  defect                  |      Status:  new                   
 Priority:  critical                |   Milestone:                        
Component:  MacRuby                 |    Keywords:  reduction 0.11-blocker
------------------------------------+---------------------------------------

Comment(by mrada@…):

 Wait, what am I thinking, that's not right, we still have to deal with
 https://github.com/MacRuby/MacRuby/blob/master/ext/json/generator/generator.c#L1378

 Which is blocked by #1326, the only workaround is to name it differently
 and handle that special case when we override
 https://github.com/MacRuby/MacRuby/blob/master/ext/json/lib/json/common.rb#L50
 to handle NSString, NSArray, and NSDictionary.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1313#comment:9>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list