8000 AttributeError: 'NoneType' object has no attribute 'subexpressions' · Issue #385 · fkie-cad/dewolf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
AttributeError: 'NoneType' object has no attribute 'subexpressions' #385
Open
@19h

Description

@19h

What happened?

Not sure how to properly pin this down:

Decompilation of `__ZN3geo5codec15_readCoastlinesEP8VMP4TileRKNSt3__110shared_ptrINS0_10VectorTileEEE` failed with:

<class 'AttributeError'>

'NoneType' object has no attribute 'subexpressions'

Traceback (most recent call last):
  File "/Users/user/Library/Application Support/Binary Ninja/plugins/dewolf/decompiler/util/widget.py", line 51, in run
    code = self.decompile_for_widget(self.binary_view, self.function)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/Library/Application Support/Binary Ninja/plugins/dewolf/decompiler/util/widget.py", line 67, in decompile_for_widget
    task = decompiler.decompile(function, options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/Library/Application Support/Binary Ninja/plugins/dewolf/decompile.py", line 52, in decompile
    task.code = self._backend.generate([task])
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/Library/Application Support/Binary Ninja/plugins/dewolf/decompiler/backend/codegenerator.py", line 30, in generate
    string_blocks.append(GlobalDeclarationGenerator.from_asts(task.syntax_tree for task in tasks if not task.failed))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/Library/Application Support/Binary Ninja/plugins/dewolf/decompiler/backend/variabledeclarations.py", line 65, in from_asts
    global_variables, extern_constants = GlobalDeclarationGenerator._get_global_variables_and_constants(asts)
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/Library/Application Support/Binary Ninja/plugins/dewolf/decompiler/backend/variabledeclarations.py", line 89, in _get_global_variables_and_constants
    for expression in obj.subexpressions():
                      ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'subexpressions'

How to reproduce?

Compiling the function __ZN3geo5codec15_readCoastlinesEP8VMP4TileRKNSt3__110shared_ptrINS0_10VectorTileEEE of:

GeoServices.zip

Affected Binary Ninja Version(s)

4.0.4886

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-highHigh priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0