system/fastboot: Fix Out-of-bounds Write

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
wangjianyu3 2024-08-13 10:11:49 +08:00 committed by Xiang Xiao
parent caa47f282e
commit 6b1062a64e

@ -847,7 +847,7 @@ static void fastboot_command_loop(FAR struct fastboot_ctx_s *context)
while (1)
{
char buffer[FASTBOOT_MSG_LEN];
char buffer[FASTBOOT_MSG_LEN + 1];
size_t ncmds = nitems(g_fast_cmd);
size_t index;