Vector35 / debugger

Binary Ninja debugger
Other
199 stars 12 forks source link

`DebuggerController.write_stdin` calls into C API incorrectly #341

Closed galenbwill closed 1 year ago

galenbwill commented 1 year ago
>>> dbg = debugger.DebuggerController(bv)
>>> dbg.write_stdin(b'\x01\x01\x01\x01\x01\x01')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File ".../binaryninja.app/Contents/MacOS/plugins/../../Resources/python/binaryninja/debugger/debuggercontroller.py", line 1232, in write_stdin
    dbgcore.BNDebuggerWriteStdin(self.handle, data)
TypeError: BNDebuggerWriteStdin() missing 1 required positional argument: 'len'
>>> dbg.write_stdin(b'\x01\x01\x01\x01\x01\x01', 6)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: DebuggerController.write_stdin() takes 2 positional arguments but 3 were given
xusheng6 commented 1 year ago

Thx for the fix!