• Paul Yang's avatar
    Fix ruby segment fault (#3708) · cd5f49d0
    Paul Yang authored
    * Fix ruby segment fault
    
    1) rb_ary_new cannot be called during allocate function. During allocate
    fucntion, the containing object hasn't been marked and rb_ary_new may
    invoke gc to collect containing object.
    2) The global map should be marked before allocating it. Otherwise it
    may be garbage collected.
    
    * Add test
    
    * Remove commented code
    
    * Fix grammer error
    cd5f49d0
Name
Last commit
Last update
..
defs.c Loading commit data...
encode_decode.c Loading commit data...
extconf.rb Loading commit data...
map.c Loading commit data...
message.c Loading commit data...
protobuf.c Loading commit data...
protobuf.h Loading commit data...
repeated_field.c Loading commit data...
storage.c Loading commit data...
upb.c Loading commit data...
upb.h Loading commit data...
wrap_memcpy.c Loading commit data...