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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions