This commit is contained in:
Nav
2022-11-17 00:49:59 +00:00
parent 7a2e8f07b5
commit 3a04fd9b17
4 changed files with 16 additions and 11 deletions

View File

@@ -233,7 +233,7 @@ namespace Bloom::DebugServer::Gdb
throw ClientCommunicationError("GDB client attempted to send too much data");
}
bytesToRead = (!bytes.has_value() || (*bytes - output.size()) > bufferSize)
bytesToRead = !bytes.has_value() || (*bytes - output.size()) > bufferSize
? bufferSize
: (*bytes - output.size());
}