decodeIRJson bugfix: avoid buffer overrun #272
Increase the size of objKey to accommodate 32bit code number. The previous buffer size was too small.
This commit is contained in:
@@ -673,7 +673,7 @@ Sample:
|
||||
*/
|
||||
void decodeIRJson(uint32_t code)
|
||||
{
|
||||
char objKey[10];
|
||||
char objKey[16] = {'\0'}; // WLEDMM: 13 chars, not 9! '"0x' + 'FFFFFFFF' + '":' + '\0'
|
||||
String cmdStr;
|
||||
JsonObject fdo;
|
||||
JsonObject jsonCmdObj;
|
||||
|
||||
Reference in New Issue
Block a user