From 8fbaf63565fb8a77cb09d8301745fe1be4c003cf Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sat, 25 Oct 2025 19:57:59 +0200 Subject: [PATCH] decodeIRJson bugfix: avoid buffer overrun #272 Increase the size of objKey to accommodate 32bit code number. The previous buffer size was too small. --- wled00/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/ir.cpp b/wled00/ir.cpp index bfb79264..c3d2c531 100644 --- a/wled00/ir.cpp +++ b/wled00/ir.cpp @@ -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;