ruby--ruby/bootstraptest
nagachika b828c95bca merge revision(s) 66832: [Backport #15536]
st.c (rb_hash_bulk_insert_into_st_table): avoid out-of-bounds write

	"hash_bulk_insert" first expands the table, but the target size was
	wrong: it was calculated by "num_entries + (size to buld insert)", but
	it was wrong when "num_entries < entries_bound", i.e., it has a deleted
	entry.  "hash_bulk_insert" adds the given entries from entries_bound,
	which led to out-of-bounds write access.  [Bug #15536]

	As a simple fix, this commit changes the calculation to "entries_bound +
	size".  I'm afraid if this might be inefficient, but I think it is safe
	anyway.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-12 22:01:32 +00:00
..
pending.rb
runner.rb show the location at intterrupted 2017-11-06 07:35:37 +00:00
test_attr.rb
test_autoload.rb * bootstraptest/test_autoload.rb, bootstraptest/test_method.rb: 2013-06-13 02:01:42 +00:00
test_block.rb vm_insnhelper.c: break from nested rescue 2015-01-23 14:57:08 +00:00
test_class.rb vm.c: initialize defined_module_hash early 2013-10-13 11:59:27 +00:00
test_env.rb merge revision(s) 64860,64861: [Backport #15164] 2018-10-09 14:43:06 +00:00
test_eval.rb Use Integer instead of Fixnum and Bignum. 2016-05-17 13:15:57 +00:00
test_exception.rb
test_finalizer.rb
test_flip.rb
test_flow.rb merge revision(s) 63868,63870: [Backport #14897] 2018-10-01 12:02:17 +00:00
test_fork.rb * bootstraptest/test_fork.rb ([ruby-dev:37934]): :NPROC (RLIMIT_NPROC) 2015-11-10 08:50:06 +00:00
test_gc.rb
test_insns.rb bootstraptest/test_insns.rb: Fix typo 2017-05-27 13:54:09 +00:00
test_io.rb Drop to support NaCl platform. 2017-10-23 05:56:25 +00:00
test_jump.rb
test_literal.rb merge revision(s) 66832: [Backport #15536] 2019-03-12 22:01:32 +00:00
test_literal_suffix.rb parse.y: parse precisely 2013-08-02 14:14:55 +00:00
test_load.rb
test_marshal.rb
test_massign.rb
test_method.rb relax error message format 2015-10-24 06:42:22 +00:00
test_objectspace.rb Use qualified names 2016-08-30 06:22:30 +00:00
test_proc.rb * vm.c (rb_vm_make_env_object): make Proc object if Env is possible 2012-11-27 11:58:10 +00:00
test_string.rb * string.c (str_discard): does not free for STR_NOFREE string. 2015-02-13 13:06:58 +00:00
test_struct.rb
test_syntax.rb parse.y: condition node 2015-01-29 13:22:39 +00:00
test_thread.rb Use qualified names 2016-08-30 06:22:30 +00:00