mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Remove tainted and trusted features
Already these had been announced to be removed in 3.2.
This commit is contained in:
parent
81c248924d
commit
39bc5de833
Notes:
git
2021-12-27 00:34:23 +09:00
14 changed files with 12 additions and 308 deletions
|
@ -57,18 +57,4 @@ class Test_String_Fstring < Test::Unit::TestCase
|
|||
str.freeze
|
||||
assert_fstring(str) {|s| assert_instance_of(S, s)}
|
||||
end
|
||||
|
||||
def test_shared_string_safety
|
||||
_unused = -('a' * 30).force_encoding(Encoding::ASCII)
|
||||
begin
|
||||
verbose_back, $VERBOSE = $VERBOSE, nil
|
||||
str = ('a' * 30).force_encoding(Encoding::ASCII).taint
|
||||
ensure
|
||||
$VERBOSE = verbose_back
|
||||
end
|
||||
frozen_str = Bug::String.rb_str_new_frozen(str)
|
||||
assert_fstring(frozen_str) {|s| assert_equal(str, s)}
|
||||
GC.start
|
||||
assert_equal('a' * 30, str, "[Bug #16151]")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue