[MacRuby] #867: Hash#to_a can't copy status of untrust.
#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/>
#867: Hash#to_a can't copy status of untrust. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: Should be fixed in r4453. -- Ticket URL: <http://www.macruby.org/trac/ticket/867#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby