#680: String.crypt crashes when called with no arguments
-------------------------------+--------------------------------------------
Reporter: nik...@… | Owner: lsansone...@…
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel