mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix potential buffer overflow
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user