8000 [UnicodeDecodeError@_binaryninjacore.py:36] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 0: invalid start byte · Issue #431 · fkie-cad/dewolf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[UnicodeDecodeError@_binaryninjacore.py:36] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 0: invalid start byte  #431
Open
@bugfinder-bot

Description

@bugfinder-bot

What happened?

  File "/opt/dewolf/decompiler/util/bugfinder/bugfinder.py", line 201, in iter_function_reports
    task, code = self.decompile(function, task_options=options)
  File "/opt/dewolf/decompile.py", line 80, in decompile
    result = self.decompile_all([function_id], task_options)
  File "/opt/dewolf/decompile.py", line 64, in decompile_all
    self._frontend.lift(task)
  File "/opt/dewolf/decompiler/frontend/binaryninja/frontend.py", line 83, in lift
    raise e
  File "/opt/dewolf/decompiler/frontend/binaryninja/frontend.py", line 76, in lift
    task.cfg = parser.parse(function)
  File "/opt/dewolf/decompiler/frontend/binaryninja/parser.py", line 49, in parse
    index_to_BasicBlock[basic_block.index] = BasicBlock(basic_block.index, instructions=list(self._lift_instructions(basic_block)))
  File "/opt/dewolf/decompiler/frontend/binaryninja/parser.py", line 148, in _lift_instructions
    if lifted_instruction := self._lifter.lift(instruction):
  File "/opt/dewolf/decompiler/frontend/binaryninja/lifter.py", line 33, in lift
    if pseudo_expression := handler(expression, **kwargs):
  File "/opt/dewolf/decompiler/frontend/binaryninja/handlers/assignments.py", line 133, in lift_store
    self._lift_store_destination(assignment),
  File "/opt/dewolf/decompiler/frontend/binaryninja/handlers/assignments.py", line 142, in _lift_store_destination
    store_destination = self._lifter.lift(store_assignment.dest, parent=store_assignment)
  File "/opt/dewolf/decompiler/frontend/binaryninja/lifter.py", line 33, in lift
    if pseudo_expression := handler(expression, **kwargs):
  File "/opt/dewolf/decompiler/frontend/binaryninja/handlers/binary.py", line 52, in lift_binary_operation
    [self._lifter.lift(x, parent=operation) for x in operation.operands],
  File "/opt/dewolf/decompiler/frontend/binaryninja/handlers/binary.py", line 52, in <listcomp>
    [self._lifter.lift(x, parent=operation) for x in operation.operands],
  File "/opt/dewolf/decompiler/frontend/binaryninja/lifter.py", line 33, in lift
    if pseudo_expression := handler(expression, **kwargs):
  File "/opt/dewolf/decompiler/frontend/binaryninja/handlers/constants.py", line 43, in lift_constant
    if addr_in_section(constant.function.view, constant.constant):
  File "/opt/dewolf/decompiler/frontend/binaryninja/handlers/globals.py", line 346, in addr_in_section
    for _, section in view.sections.items():
  File "/opt/binaryninja/python/binaryninja/binaryview.py", line 2854, in sections
    result[core.BNSectionGetName(section_list[i])] = Section(section_handle)
  File "/opt/binaryninja/python/binaryninja/_binaryninjacore.py", line 44478, in BNSectionGetName
    string = str(pyNativeStr(ctypes.cast(result, ctypes.c_char_p).value))
  File "/opt/binaryninja/python/binaryninja/_binaryninjacore.py", line 36, in pyNativeStr
    return arg.decode('utf8')

Error class UnicodeDecodeError@_binaryninjacore.py:36 contains 1284 cases.

How to reproduce?

python decompile.py 2d101cb5e071b57f48d93ad4cf1caa07199693d8073802209e6bf6e5a9188eb9 Uzma_index_iter_init --debug

sample: 2d101cb5e071b57f48d93ad4cf1caa07199693d8073802209e6bf6e5a9188eb9
case: https://bugfinder.seclab-bonn.de/case/61955/
dewolf commit: ad2f8a3
Binaryninja version: 3.5.4526

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0