Vector35 / dwarf_import

This loads DWARF info from an open binary and propagates function names, arguments, and type info
MIT License
24 stars 7 forks source link

remove deprecation warning #22

Closed lockbox closed 1 year ago

lockbox commented 1 year ago

When loading a binary in Binary Ninja after installing this plugin:

/home/lockbox/.binaryninja/repositories/official/plugins/Vector35_dwarf_import/__init__.py:85: DeprecatedWarning: __len__ is deprecated. Use .length instead. Python disallows the length of an object to >= 0x8000000000000000. See https://bugs.python.org/issue21444.
  if not bv.parent_view:

changing this line to

if not bv.parent_view.length:

removes this issue

ElykDeer commented 1 year ago

Fixed in 1628db18825a62a5ef7cdb7ca859da1ef0e58e4f.