[ruby-cvs:65374] nagachika:r58203 (ruby_2_3): merge revision(s) 58200: [Backport #13376]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Wed Mar 29 06:29:16 JST 2017


nagachika	2017-03-29 06:29:16 +0900 (Wed, 29 Mar 2017)

  New Revision: 58203

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

  Log:
    merge revision(s) 58200: [Backport #13376]
    
    * hash.c (any_hash): fix Symbol#hash to be nondeterministic.
      The patch was provided by Eric Wong. [ruby-core:80433] [Bug #13376]
    
    test/ruby/test_symbol.rb: new test for nondeterminism
    
    We need to ensure hashes for static symbols remain
    non-deterministic to avoid DoS attacks.   This is currently the
    case since 2.4+, but was not for the 2.3 series.
    
    * test/ruby/test_symbol.rb (test_hash_nondeterministic): new test
      [ruby-core:80430] [Bug #13376]

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/hash.c
    branches/ruby_2_3/test/ruby/test_symbol.rb
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list