[前][次][番号順一覧][スレッド一覧]

ruby-changes:47241

From: normal <ko1@a...>
Date: Tue, 18 Jul 2017 16:21:11 +0900 (JST)
Subject: [ruby-changes:47241] normal:r59356 (trunk): test/ruby/test_string.rb: ensure we do not have tainted strings

normal	2017-07-18 16:21:05 +0900 (Tue, 18 Jul 2017)

  New Revision: 59356

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

  Log:
    test/ruby/test_string.rb: ensure we do not have tainted strings
    
    Trying to figure out [ruby-core:82092]
    cf. https://gist.github.com/e2c899c453f3f66e7934095c32505486

  Modified files:
    trunk/test/ruby/test_string.rb
Index: test/ruby/test_string.rb
===================================================================
--- test/ruby/test_string.rb	(revision 59355)
+++ test/ruby/test_string.rb	(revision 59356)
@@ -2750,6 +2750,8 @@ CODE https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L2750
     assert_not_equal(str.object_id, (+str).object_id)
     assert_equal(str.object_id, (-str).object_id)
     bar = %w(b a r).join('')
+    assert_not_predicate bar, :tainted?
+    assert_not_predicate str, :tainted?
     assert_same(str, -bar, "uminus deduplicates [Feature #13077]")
   end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]