diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-11-14 18:54:13 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-11-18 01:00:25 +0200 |
commit | ab42e5a486a5b27107296fa34056f03ac878e306 (patch) | |
tree | bead27022495820d026620df9a63c3969946b805 /test/fiddle/test_func.rb | |
parent | ffd0820ab317542f8780aac475da590a4bdbc7a8 (diff) | |
download | ruby-ab42e5a486a5b27107296fa34056f03ac878e306.tar.gz |
More fixes for $SAFE/taint post merging
Diffstat (limited to 'test/fiddle/test_func.rb')
-rw-r--r-- | test/fiddle/test_func.rb | 12 |
1 files changed, 0 insertions, 12 deletions
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) |