[ruby-cvs:69297] normal:r62116 (trunk): ruby.h: relax rb_funcall check on extra args for clang

normal at ruby-lang.org normal at ruby-lang.org
Wed Jan 31 08:55:49 JST 2018


normal	2018-01-31 08:55:49 +0900 (Wed, 31 Jan 2018)

  New Revision: 62116

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62116

  Log:
    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 at 80x24.org>

  Added files:
    trunk/ext/-test-/funcall/funcall.c
    trunk/test/-ext-/funcall/test_funcall.rb
  Removed files:
    trunk/ext/-test-/funcall/passing_block.c
  Modified files:
    trunk/include/ruby/ruby.h


More information about the ruby-cvs mailing list