[ruby-cvs:66537] normal:r59359 (trunk): string: preserve taint flag with String#-@ (uminus)

normal at ruby-lang.org normal at ruby-lang.org
Tue Jul 18 18:52:55 JST 2017


normal	2017-07-18 18:52:55 +0900 (Tue, 18 Jul 2017)

  New Revision: 59359

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

  Log:
    string: preserve taint flag with String#-@ (uminus)
    
    * string.c (tainted_fstr_update): move up
      (rb_fstring): support registering tainted strings
      (register_fstring_tainted): extract from rb_fstring_existing0
      (rb_tainted_fstring_existing): use register_fstring_tainted instead

  Modified files:
    trunk/string.c
    trunk/test/ruby/test_string.rb


More information about the ruby-cvs mailing list