Skip to content

Crash below DebuggerUI::CreateForViewFrame if UIContext::contextForWidget returns null #1094

@sentry

Description

@sentry

Sentry Issue: BINARYNINJA-8Y

EXC_BAD_ACCESS / KERN_INVALID_ADDRESS / 0x0: Fatal Error: EXC_BAD_ACCESS / KERN_INVALID_ADDRESS / 0x0
  File "ui.cpp", in DebuggerUI::updateUI
  File "ui.cpp", line 1700, in DebuggerUI::DebuggerUI
  File "ui.cpp", line 1686, in DebuggerUI
  File "unique_ptr.h", line 767, in std::__1::make_unique[abi:ne200100]<T>
  File "ui.cpp", line 2093, in DebuggerUI::CreateForViewFrame
...
(39 additional frame(s) were not displayed)

@bdash says:

It looks like this happens when UIContext::contextForWidget returns null. The returned value is passed directly into DebuggerUI's constructor, where it is assumed to be non-null. Most/all other callers of UIContext::contextForWidget in the debugger appear to null check the result before using it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions