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

[AttributeError@compiler_idiom_handling.py:92] AttributeError: 'Branch' object has no attribute 'destination' #308

Open
bugfinder-bot opened this issue Aug 7, 2023 · 2 comments
Labels
bug Something isn't working bugfinder

Comments

@bugfinder-bot
Copy link
Collaborator

What happened?

  File "/opt/dewolf/decompiler/util/bugfinder/bugfinder.py", line 190, in iter_function_reports
    task_result = self.decompile(function, options)
  File "/opt/dewolf/decompile.py", line 51, in decompile
    pipeline.run(task)
  File "/opt/dewolf/decompiler/pipeline/pipeline.py", line 109, in run
    raise e
  File "/opt/dewolf/decompiler/pipeline/pipeline.py", line 102, in run
    instance.run(task)
  File "/opt/dewolf/decompiler/pipeline/preprocessing/compiler_idiom_handling.py", line 38, in run
    new_instruction = self._get_replacement_instruction(
  File "/opt/dewolf/decompiler/pipeline/preprocessing/compiler_idiom_handling.py", line 92, in _get_replacement_instruction
    return Assignment(instructions[last_index].destination, BinaryOperation(operation_type, [var, const]))

Error class AttributeError@compiler_idiom_handling.py:92 contains 5 cases.

How to reproduce?

python decompile.py 4e1d23ddfbb6bfd3f134e2760b812e0b2f7ec2be721bd9e68503e16d4d24d2ef sub_193d --debug

sample: 4e1d23ddfbb6bfd3f134e2760b812e0b2f7ec2be721bd9e68503e16d4d24d2ef
case: https://bugfinder.seclab-bonn.de/case/3005/
dewolf commit: 6ab8a25
Binaryninja version: 3.4.4271

@bugfinder-bot bugfinder-bot added bug Something isn't working bugfinder labels Aug 7, 2023
@NeoQuix NeoQuix self-assigned this Aug 7, 2023
@NeoQuix
Copy link
Collaborator

NeoQuix commented Aug 23, 2023

/cib

@github-actions
Copy link
Contributor

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