berkesokhan / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
1 stars 0 forks source link

Taint does not get set for string + #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ruby.exe and RubyCompiler.exe. svn 136

def test_plus_taint
 str1 = "xyz"
 assert_equal false, str1.tainted?
 str1.taint
 assert_equal true, str1.tainted?

 str2 = "abc"
 assert_equal false, str2.tainted?
 str2 = str2 + str1
 # Fails with Ruby.exe and RubyCompiler.exe. Ok with MRI
 assert_equal true, str2.tainted? 
end

Original issue reported on code.google.com by djl.rif...@googlemail.com on 22 Oct 2007 at 6:51

GoogleCodeExporter commented 9 years ago

Original comment by meaningi...@gmail.com on 22 Oct 2007 at 7:57