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.
The RSP/GDB adapters call
std::stoi/std::stoulldirectly on data received from the remote debug stub (rspconnector.cpp,gdbadapter.cpp,corelliumadapter.cpp,gdbmiadapter.cpp). A malformed packet throwsstd::invalid_argument/std::out_of_range, which is never caught and terminates the process.