fix potential buffer overflow

This commit is contained in:
proddy
2024-10-22 14:14:05 +02:00
parent 0a062b17da
commit 4565e64f63

View File

@@ -2019,7 +2019,7 @@ bool System::uploadFirmwareURL(const char * url) {
bool System::readCommand(const char * data) { bool System::readCommand(const char * data) {
// extract <deviceID> <type ID> [offset] [length] from string // extract <deviceID> <type ID> [offset] [length] from string
char * p; char * p;
char value[6]; char value[11];
// make a copy so we can iterate, max 15 chars (XX XXXX XX XX) // make a copy so we can iterate, max 15 chars (XX XXXX XX XX)
char data_args[15]; char data_args[15];