fkie-cad / dewolf

A research decompiler implemented as a Binary Ninja plugin.
GNU Lesser General Public License v2.1
171 stars 9 forks source link

[DecompilerTask] remove monkey patching of task object #170

Closed mm4rks closed 11 months ago

mm4rks commented 1 year ago

Proposal

In decompile.py:56 we use

task.code = self._backend.generate([task])

without task object having the .code property.

Same for decompiler/frontend/binaryninja/frontend.py:70:

task.function = function

Is this even needed?

Approach

Add property + getters / setters

fnhartmann commented 11 months ago

/cib

github-actions[bot] commented 11 months ago

Branch issue-170-_DecompilerTask_remove_monkey_patching_of_task_object created!