[ruby-cvs:70910] nagachika:r63819 (ruby_2_5): merge revision(s) 61525, 61527, 63062, 63650: [Backport #14846]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Mon Jul 2 09:31:27 JST 2018


nagachika	2018-07-02 09:31:27 +0900 (Mon, 02 Jul 2018)

  New Revision: 63819

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

  Log:
    merge revision(s) 61525,61527,63062,63650: [Backport #14846]
    
    error.c: negative uplevel
    
    * error.c (rb_warn_m): negative uplevel is not allowed.
      [ruby-core:84568] [Bug #14262]
    
    error.c: limit depth
    
    * error.c (rb_warn_m): limit backtrace depth to reduce objects to
      be created but not used.
    
    error.c: prepend "warning: " always
    
    * error.c (rb_warn_m): prepend the string "warning: " if uplevel
      keyword is given, even if caller file and line information are
      not available.
    
    Fix condition in Kernel#warn when using uplevel
    
    * It causes SEGV on `warn("foo", uplevel: 100)`.
    * Found in a ruby/spec added by @andrykonchin in
      https://github.com/ruby/spec/pull/605

  Modified directories:
    branches/ruby_2_5/
  Modified files:
    branches/ruby_2_5/error.c
    branches/ruby_2_5/test/ruby/test_exception.rb
    branches/ruby_2_5/version.h


More information about the ruby-cvs mailing list