Corrected bug in GDB RSP write general registers (P) packet validation

This commit is contained in:
Nav
2021-06-26 03:39:48 +01:00
parent 750bea9bd4
commit f2a4c09304

View File

@@ -9,7 +9,7 @@ void WriteGeneralRegister::init() {
// The P packet updates a single register
auto packet = std::string(this->data.begin(), this->data.end());
if (packet.size() < 6) {
if (packet.size() < 4) {
throw Exception("Invalid P command packet - insufficient data in packet.");
}