[MacRuby] #680: String.crypt crashes when called with no arguments
#680: String.crypt crashes when called with no arguments -------------------------------+-------------------------------------------- Reporter: niklas@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- When calling String.crypt with no arguments macruby crashes: {{{
macirb irb(main):001:0> "hallo".crypt() zsh: illegal hardware instruction macirb }}}
If called with an empty string it raises correctly: {{{
macirb irb(main):001:0> "hallo".crypt("") ArgumentError: salt too short (need >=2 bytes) from /Users/niklas/(irb):1:in `<main>' irb(main):002:0> }}}
I think this is a minor bug as crypt needs at least 2 bytes, but shouldn't it raise an error instead of crashing? Tested with MacRuby 0.6 on 10.6.3 -- Ticket URL: <http://www.macruby.org/trac/ticket/680> MacRuby <http://macruby.org/>
#680: String.crypt crashes when called with no arguments -------------------------------+-------------------------------------------- Reporter: niklas@… | 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.6 => MacRuby 0.7 Comment: Should be fixed in r4033. -- Ticket URL: <http://www.macruby.org/trac/ticket/680#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby