protobuf/ruby/ext/google/protobuf_c
Paul Yang cd5f49d094 Fix ruby segment fault (#3708)
* 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
2017-10-03 17:28:49 -07:00
..
defs.c Fix ruby segment fault (#3708) 2017-10-03 17:28:49 -07:00
encode_decode.c Storing the frame on the map means we don't need the array 2017-08-30 11:38:09 -07:00
extconf.rb Ruby: wrap calls to memcpy so that gem is compatible with pre-2.14 glibc 2017-03-09 10:03:22 -08:00
map.c Storing the frame on the map means we don't need the array 2017-08-30 11:38:09 -07:00
message.c Merge pull request #3627 from zanker/zanker/add-submsg-hash-init 2017-09-21 15:08:45 -07:00
protobuf.c Fix ruby segment fault (#3708) 2017-10-03 17:28:49 -07:00
protobuf.h Fix ruby segment fault (#3708) 2017-10-03 17:28:49 -07:00
repeated_field.c fix #2036: use rb_hash_* to accumulate hashes 2016-08-30 16:22:49 -07:00
storage.c Allow initializing a chain of protos using only a hash 2017-09-20 11:39:46 -07:00
upb.c Updated upb to fix JSON conformance issues. (#3206) 2017-06-19 15:13:24 -07:00
upb.h Updated upb to fix JSON conformance issues. (#3206) 2017-06-19 15:13:24 -07:00
wrap_memcpy.c Ruby: only link against specific version of memcpy if we're using glibc 2017-03-17 11:23:01 -07:00