tanto icon indicating copy to clipboard operation
tanto copied to clipboard

Runtime error when slicing

Open d0mnik opened this issue 10 months ago • 0 comments

When using tanto to perform slicing, the following error is thrown:

[ScriptingProvider] Traceback (most recent call last):
[ScriptingProvider]   File "/Users/<redacted>/Library/Application Support/Binary Ninja/repositories/official/plugins/tanto/tanto_view.py", line 119, in navigate
[ScriptingProvider]     self.setup_right_click_menu()
[ScriptingProvider]   File "/Users/<redacted>/Library/Application Support/Binary Ninja/repositories/official/plugins/tanto/tanto_view.py", line 265, in setup_right_click_menu
[ScriptingProvider]     if (current_slice_name := self.slice_menu.get_current_slice_name()) != menus.NEW_SLICE_TEXT:
[ScriptingProvider]                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ScriptingProvider]   File "/Users/<redacted>/Library/Application Support/Binary Ninja/repositories/official/plugins/tanto/menus.py", line 199, in get_current_slice_name
[ScriptingProvider]     return list(self.menu.m_menu.getActions())[self.menu.index]

Once the error happens, any form of slicing is broken until the current BV is reopened.

Steps to reproduce:

  1. access tanto via command palatte
  2. create new variable slice
  3. go back to linear view in BV
  4. access tanto via command palatte again

d0mnik avatar Apr 09 '25 07:04 d0mnik