From b809784817649817c3e53fa000f57504446caef9 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Sat, 19 Oct 2019 16:10:47 -0700 Subject: [ruby/fiddle] Remove taint support (#21) Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. https://github.com/ruby/fiddle/commit/18d6fb6915 --- test/fiddle/test_func.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'test/fiddle/test_func.rb') diff --git a/test/fiddle/test_func.rb b/test/fiddle/test_func.rb index d170c59a75..ca89173766 100644 --- a/test/fiddle/test_func.rb +++ b/test/fiddle/test_func.rb @@ -11,18 +11,6 @@ module Fiddle assert_nil f.call(10) end - def test_syscall_with_tainted_string - f = Function.new(@libc['system'], [TYPE_VOIDP], TYPE_INT) - Thread.new { - $SAFE = 1 - assert_raise(SecurityError) do - f.call("uname -rs".dup.taint) - end - }.join - ensure - $SAFE = 0 - end - def test_sinf begin f = Function.new(@libm['sinf'], [TYPE_FLOAT], TYPE_FLOAT) -- cgit v1.2.3