#867: Hash#to_a can't copy status of untrust. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby $ cat test_untrust.rb def assert_equal(a, b) p b p a == b puts "-----" end h = Hash.new( 1=>2, 3=>4, 5=>6 ) h.taint h.untrust a = h.to_a puts "** tainted?" assert_equal(true, h.tainted?) assert_equal(true, a.tainted?) puts "** untrusted?" assert_equal(true, h.untrusted?) assert_equal(true, a.untrusted?) }}} Result of Ruby 1.9.1: {{{ $ ruby test_untrust.rb ** tainted? true true ----- true true ----- ** untrusted? true true ----- true true ----- }}} Result of MacRuby Trunk: {{{ $ macruby test_untrust.rb ** tainted? true true ----- true true ----- ** untrusted? true true ----- false false ----- }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/867> MacRuby <http://macruby.org/>