jjyg/metasm — pull request #2 by argp (2012-01-23 11:25:06+00:00)
Title: metasm/os/linux.rb: ArgumentError fails with can't convert Array into Integer (TypeError)

When instantiating a debugger on Linux with a path of an executable rather than a PID to attach to, the following error occurs:

metasm/os/linux.rb:1061:in `Integer': can't convert Array into Integer (TypeError)
from metasm/metasm/os/linux.rb:1061:in `initialize'
from metasm/metasm/os/linux.rb:665:in `new'
from metasm/metasm/os/linux.rb:665:in `create_debugger'
from autoex.rb:19:in `block in

'
from autoex.rb:18:in `loop'
from autoex.rb:18:in `

'

The fix changes ArgumentError to TypeError.