Skip to content

Crash due to handled exception within DebuggerInfoTable::getInfoForHLILCalls #1068

@sentry

Description

@sentry

Sentry Issue: BINARYNINJA-47

Unhandled C++ Exception / 0x7ffe6f988e3a: Fatal Error: Unhandled C++ Exception / 0x7ffe6f988e3a
  File "throw.cpp", line 79, in _CxxThrowException
  File "binaryreader.cpp", line 175, in BinaryNinja::BinaryReader::ReadLEPointer
  File "binaryreader.cpp", line 119, in BinaryNinja::BinaryReader::ReadPointer
  File "new_scalar.cpp", line 35, in new
  File "binaryreader.cpp", line 7, in BinaryNinjaCore::BinaryReader::{ctor}
...
(13 additional frame(s) were not displayed)

@bdash says:

This crash is due to throwing without an exception handler up the stack. DebuggerInfoTable::getInfoForHLILCalls calls `BinaryReader::ReadPointer, which can throw if the current offset is out of range. I don't see any obvious validation of the offset before it is used.

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