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: 'NoneType' object has no attribute 'dest' #8

Open
Raviu56 opened this issue Aug 13, 2020 · 2 comments
Open

AttributeError: 'NoneType' object has no attribute 'dest' #8

Raviu56 opened this issue Aug 13, 2020 · 2 comments

Comments

@Raviu56
Copy link

Raviu56 commented Aug 13, 2020

Plugin fails on binary ninja 2.0.x
I was simply looking at InSpectre https://www.grc.com/files/InSpectre.exe

Exception in thread Thread-2:
Traceback (most recent call last):
  File "C:\Users\user\Desktop\BinaryNinja\BinaryNinja-Windows\plugins\lib\threading.py", line 810, in __bootstrap_inner
    self.run()
  File "C:\Users\user\Desktop\BinaryNinja\BinaryNinja-Windows\plugins\..\python\binaryninja\plugin.py", line 731, in run
    self.task.run()
  File "C:\Users\user\AppData\Roaming\Binary Ninja\plugins\llvm-deobfuscator\__init__.py", line 18, in run
    self.func(bv, self.addr)
  File "C:\Users\user\AppData\Roaming\Binary Ninja\plugins\llvm-deobfuscator\deflatten.py", line 295, in deflatten_cfg
    state_var = func.get_low_level_il_at(addr).medium_level_il.dest
AttributeError: 'NoneType' object has no attribute 'dest'
@stevemk14ebr
Copy link

I also sometimes get:

Traceback (most recent call last):
  File "threading.py", line 932, in _bootstrap_inner
  File "C:\Users\steve\AppData\Local\Vector35\BinaryNinja\plugins\..\python\binaryninja\plugin.py", line 731, in run
    self.task.run()
  File "C:\Users\steve\AppData\Roaming\Binary Ninja\plugins\llvm-deobfuscator-master\__init__.py", line 18, in run
    self.func(bv, self.addr)
  File "C:\Users\steve\AppData\Roaming\Binary Ninja\plugins\llvm-deobfuscator-master\deflatten.py", line 298, in deflatten_cfg
    backbone = compute_backbone_map(bv, mlil, state_var)
  File "C:\Users\steve\AppData\Roaming\Binary Ninja\plugins\llvm-deobfuscator-master\deflatten.py", line 143, in compute_backbone_map
    cond_var = bb[-1].condition.src
AttributeError: 'MediumLevelILInstruction' object has no attribute 'src'

@WYK15
Copy link

WYK15 commented Feb 7, 2021

I also got this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants