ruby/test/-ext-
naruse 18b6b67233 merge revision(s) 62116,62151: [Backport #14425]
ruby.h: relax rb_funcall check on extra args for clang

	clang 5.+ (tested clang 7.0.0) seems to be attempting division-by-zero
	and giving a very large number for static args to rb_funcall.

	* include/ruby/ruby.h (rb_varargs_bad_length): relax check for clang
	* ext/-test-/funcall/funcall.c: renamed from passing_block.c
	  define extra_args_name function
	* test/-ext-/funcall/test_funcall.rb: new test
	  [ruby-core:85266] [Bug #14425]

	From: Eric Wong <e@80x24.org>

	ruby.h: relax rb_funcall(obj, id, 0, 0) case only

	* include/ruby/ruby.h (rb_varargs_argc_valid_p): relax rb_funcall
	  check on extra args only if argc == 0, for the compatibility
	  with wrong code which is probably confused with rb_funcallv.
	  [Bug #14425]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-20 20:11:47 +00:00
..
array Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
bignum numeric.c: fix return value on big 0 2016-11-01 12:35:32 +00:00
bug_reporter ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
class Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
debug vm_backtrace.c: ignore ifunc frames 2015-12-21 01:18:48 +00:00
exception eval.c: hide internal objects 2017-02-03 06:23:34 +00:00
file Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
float * test/-ext-/float/test_nextafter.rb: In AIX, 2016-03-04 22:43:31 +00:00
funcall merge revision(s) 62116,62151: [Backport #14425] 2018-02-20 20:11:47 +00:00
gvl Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
hash Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
integer Rename RbConfig::Limits as RbConfig::LIMITS 2017-04-06 02:10:40 +00:00
iseq_load test_iseq_load.rb: refine test_require_integration 2017-02-02 05:43:58 +00:00
iter passed block should keep the lambda-ness 2017-01-01 08:22:02 +00:00
load load.c: fix rb_load_protect condition 2017-09-24 05:22:23 +00:00
marshal Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
method * basictest/test.rb: Adjust spaces in class declarations 2016-10-07 05:18:57 +00:00
num2int Rename RbConfig::Limits as RbConfig::LIMITS 2017-04-06 02:10:40 +00:00
path_to_class ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
popen_deadlock Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
postponed_job Remove unnecessary require 'thread' 2017-10-08 07:00:01 +00:00
proc Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
rational Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
st Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
string Add FrozenError as a subclass of RuntimeError 2017-12-12 00:46:34 +00:00
struct fix RSTRUCT_LEN macro in public C API 2017-04-15 00:46:00 +00:00
symbol symbol/noninterned_name.rb 2016-11-12 08:16:58 +00:00
thread_fd_close Fix test-all tests to avoid creating report_on_exception warnings 2017-12-12 18:44:49 +00:00
time * test/-ext-/time/test_new.rb (test_timespec_new): change a gmtoff 2016-03-18 18:05:47 +00:00
tracepoint Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
typeddata gc.c: expand sorted pages 2017-06-22 00:59:54 +00:00
vm at_exit list 2016-04-04 14:37:07 +00:00
wait_for_single_fd rb_wait_for_single_fd: do not OOM or segfault with invalid FD on select() 2017-05-27 08:26:47 +00:00
win32 test_dln.rb: fix path separator on MinGW 2017-09-28 13:55:48 +00:00
test_bug-3571.rb ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
test_bug-5832.rb ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
test_notimplement.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_printf.rb sprintf.c: NULL as str 2017-09-09 09:16:59 +00:00
test_recursion.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_scan_args.rb non-keywords hash 2017-08-20 06:08:25 +00:00