Vector35 / deprecated-binaryninja-python

Deprecated Binary Ninja prototype written in Python
GNU General Public License v2.0
518 stars 128 forks source link

Crash when opening....notepad.exe #14

Open DigiAngel opened 8 years ago

DigiAngel commented 8 years ago

So...I was installing this on a test linux box and decided to open notepad.exe from Windows 7 64 bit. Here's what I get when opening:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/jlay/Apps/binaryninja-python/DisassemblerView.py", line 175, in analysis_thread_proc
    self.analysis.analyze()
  File "/home/jlay/Apps/binaryninja-python/Analysis.py", line 962, in analyze
    self.start.findBasicBlocks()
  File "/home/jlay/Apps/binaryninja-python/Analysis.py", line 865, in findBasicBlocks
    block.populate(known_instrs)
  File "/home/jlay/Apps/binaryninja-python/Analysis.py", line 807, in populate
    instr.format_text(self, self.analysis.options)
  File "/home/jlay/Apps/binaryninja-python/Analysis.py", line 142, in format_text
    elif (instr.operands[j].size == self.addr_size) and (value >= block.exe.start()) and (value < block.exe.end()) and (not self.isLocalJump()):
  File "/home/jlay/Apps/binaryninja-python/BinaryData.py", line 148, in end
    return self.start() + len(self)
TypeError: __len__() should return an int

Every other file I throw at BinaryNinja works awesome...just...apparently not this one :) I get the same results with Linux or Windows. Thank you.