Merge pull request #2120 from proddy/dev

fix potential buffer overflow
This commit is contained in:
Proddy
2024-10-22 14:14:44 +02:00
committed by GitHub

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];