Skip to content

Malformed remote stub data can crash via unguarded std::stoi/stoull #1164

Description

@xusheng6

The RSP/GDB adapters call std::stoi/std::stoull directly on data received from the remote debug stub (rspconnector.cpp, gdbadapter.cpp, corelliumadapter.cpp, gdbmiadapter.cpp). A malformed packet throws std::invalid_argument/std::out_of_range, which is never caught and terminates the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions