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

[[email protected]:72] AttributeError: 'BinaryOperation' object has no attribute 'name' #359

Closed
bugfinder-bot opened this issue Nov 8, 2023 · 2 comments · Fixed by #360
Assignees
Labels
bug Something isn't working bugfinder

Comments

@bugfinder-bot
Copy link
Collaborator

What happened?

  File "/opt/dewolf/decompiler/util/bugfinder/bugfinder.py", line 201, in iter_function_reports
    task_result = self.decompile(function, options)
  File "/opt/dewolf/decompile.py", line 52, in decompile
    task.code = self._backend.generate([task])
  File "/opt/dewolf/decompiler/backend/codegenerator.py", line 34, in generate
    string_blocks.append(self.generate_function(task))
  File "/opt/dewolf/decompiler/backend/codegenerator.py", line 45, in generate_function
    local_declarations=LocalDeclarationGenerator.from_task(task) if not task.failed else "",
  File "/opt/dewolf/decompiler/backend/variabledeclarations.py", line 41, in from_task
    return "\n".join(generator.generate(param_names))
  File "/opt/dewolf/decompiler/backend/variabledeclarations.py", line 72, in generate
    if not isinstance(variable, GlobalVariable) and variable.name not in param_names:

Error class [email protected]:72 contains 55 cases.

How to reproduce?

python decompile.py a38d98cf9dde696e5556b3c6bb2d1eaaaf558db1d439b0c981653d035dffa45f select --debug

sample: a38d98cf9dde696e5556b3c6bb2d1eaaaf558db1d439b0c981653d035dffa45f
case: https://bugfinder.seclab-bonn.de/case/9012/
dewolf commit: 0ff5502
Binaryninja version: 3.5.4526

@bugfinder-bot bugfinder-bot added bug Something isn't working bugfinder labels Nov 8, 2023
@rihi rihi self-assigned this Nov 8, 2023
@rihi
Copy link
Collaborator

rihi commented Nov 8, 2023

/cib

Copy link
Contributor

github-actions bot commented Nov 8, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bugfinder
Projects
None yet
2 participants