Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tailcall causes AttributeError #10

Open
nihaals opened this issue Mar 9, 2024 · 0 comments
Open

Tailcall causes AttributeError #10

nihaals opened this issue Mar 9, 2024 · 0 comments
Labels

Comments

@nihaals
Copy link

nihaals commented Mar 9, 2024

Describe the bug
Navigating to a tailcall()/__tailcall causes an AttributeError.

Offending instruction information

Address:
  0x100003d98
Architecture:
  aarch64
bv.read:
  00021fd6
bv.get_disassembly:
  br      x16
function.get_lifted_il_at:
  jump(x16)
function.get_lifted_ils_at:
  [<LowLevelILJump: jump(x16)>, <LowLevelILUndef: undefined>, <LowLevelILJump: jump(0x100003d9c)>]
function.get_llil_at:
  <return> tailcall(x16)
function.get_llils_at:
  [<LowLevelILTailcall: <return> tailcall(x16)>]
architecture.get_low_level_il_from_bytes:
  jump(x16)

Expected behavior
The error is not shown.

Actual behavior

[Default] Traceback (most recent call last):
[Default]   File "/.../explain.py", line 196, in explain_llil
[Default]     return explanations[name].format(**preprocess(bv, llil_instruction))
[Default]   File "/.../explain.py", line 35, in __getattr__
[Default]     raise AttributeError(f"{self.instruction} has no attribute '{item}'")
[Default] AttributeError: <return> tailcall(x16) has no attribute 'params'
...

Platform Information (please complete the following information):

  • Binary Ninja Version: 3.5.4526
  • OS: macOS
  • Python Interpreter: Bundled 3.10(?)
@nihaals nihaals added the bug label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant