[ruby-cvs:53693] nobu:r46547 (trunk): hash.c: prohibit tainted strings

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Jun 25 10:20:02 JST 2014


nobu	2014-06-25 10:20:01 +0900 (Wed, 25 Jun 2014)

  New Revision: 46547

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

  Log:
    hash.c: prohibit tainted strings
    
    * hash.c (env_aset, env_has_key, env_assoc, env_has_value),
      (env_rassoc, env_key): prohibit tainted strings if $SAFE is
      non-zero.  [Bug #9976]

  Modified files:
    trunk/ChangeLog
    trunk/hash.c
    trunk/test/ruby/test_env.rb


More information about the ruby-cvs mailing list