1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/bootstraptest
naruse a5dae936e0 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_6@66853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-17 22:08:56 +00:00
..
pending.rb revert r65820 and retry assert_finish 2018-11-20 02:16:30 +00:00
runner.rb bootstraptest/runner.rb: increase timeout for --jit-wait 2018-12-12 00:38:49 +00:00
test_attr.rb
test_autoload.rb
test_block.rb vm_insnhelper.c: break from nested rescue 2015-01-23 14:57:08 +00:00
test_class.rb
test_env.rb fallback env encoding to ASCII-8BIT 2018-09-26 17:24:00 +00:00
test_eval.rb Use Integer instead of Fixnum and Bignum. 2016-05-17 13:15:57 +00:00
test_exception.rb error.c: bypass Exception.new 2018-02-20 10:08:27 +00:00
test_finalizer.rb
test_flip.rb
test_flow.rb Fix a bug of peephole optimization 2018-07-06 04:52:33 +00:00
test_fork.rb bootstraptest/test_fork.rb: Stop too restrict NPROC test temporarily 2018-01-09 08:05:40 +00:00
test_gc.rb
test_insns.rb bootstraptest/test_insns.rb: test newhashfromarray 2018-10-27 08:17:01 +00:00
test_io.rb bootstraptest update test_io.rb [Bug #15060] [Fix GH-1495] 2018-09-04 05:28:38 +00:00
test_jump.rb
test_literal.rb merge revision(s) 66832: [Backport #15536] 2019-01-17 22:08:56 +00:00
test_literal_suffix.rb
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 $SAFE as a process global state. [Feature #14250] 2017-12-28 20:09:24 +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 revert r65820 and retry assert_finish 2018-11-20 02:16:30 +00:00