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

[ValueError@missing_definitions.py:218] ValueError: list_op [] unknown type = list_op [] unknown type is not in list #329

Closed
bugfinder-bot opened this issue Aug 31, 2023 · 4 comments · Fixed by #330
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 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/missing_definitions.py", line 99, in run
    self.insert_missing_definitions()
  File "/opt/dewolf/decompiler/pipeline/preprocessing/missing_definitions.py", line 133, in insert_missing_definitions
    self._insert_definition_if_undefined(variable, previous_ssa_labels, undefined_variables)
  File "/opt/dewolf/decompiler/pipeline/preprocessing/missing_definitions.py", line 158, in _insert_definition_if_undefined
    self._insert_definition_of_aliased(variable, previous_ssa_labels)
  File "/opt/dewolf/decompiler/pipeline/preprocessing/missing_definitions.py", line 176, in _insert_definition_of_aliased
    position_insert_definition = self._find_position_to_insert_aliased_definition(basicblock_for_definition, memory_instruction)
  File "/opt/dewolf/decompiler/pipeline/preprocessing/missing_definitions.py", line 202, in _find_position_to_insert_aliased_definition
    position_insert_definition = self._get_insertion_position(memory_instruction, basicblock)
  File "/opt/dewolf/decompiler/pipeline/preprocessing/missing_definitions.py", line 218, in _get_insertion_position
    position_insert_definition = basicblock.instructions.index(memory_instruction, starting_search) + 1

Error class ValueError@missing_definitions.py:218 contains 17 cases.

How to reproduce?

python decompile.py 7fd06462a17ad8f376d278de9543d786b347d3e33c778b837817b259cd558969 grub_ntldr_boot --debug

sample: 7fd06462a17ad8f376d278de9543d786b347d3e33c778b837817b259cd558969
case: https://bugfinder.seclab-bonn.de/case/4371/
dewolf commit: b1ba83e
Binaryninja version: 3.4.4271

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

mm4rks commented Aug 31, 2023

/cib

@github-actions
Copy link
Contributor

@mm4rks
Copy link
Collaborator

mm4rks commented Sep 1, 2023

duplicate #174

@mm4rks
Copy link
Collaborator

mm4rks commented Sep 18, 2023

fixed by upstream

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