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:
Frank
2025-10-25 19:57:59 +02:00
committed by GitHub
parent 12b3bedba7
commit 8fbaf63565

View File

@@ -673,7 +673,7 @@ Sample:
*/ */
void decodeIRJson(uint32_t code) void decodeIRJson(uint32_t code)
{ {
char objKey[10]; char objKey[16] = {'\0'}; // WLEDMM: 13 chars, not 9! '"0x' + 'FFFFFFFF' + '":' + '\0'
String cmdStr; String cmdStr;
JsonObject fdo; JsonObject fdo;
JsonObject jsonCmdObj; JsonObject jsonCmdObj;