system/fastboot: Fix Out-of-bounds Write
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
caa47f282e
commit
6b1062a64e
@ -847,7 +847,7 @@ static void fastboot_command_loop(FAR struct fastboot_ctx_s *context)
|
|||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
char buffer[FASTBOOT_MSG_LEN];
|
char buffer[FASTBOOT_MSG_LEN + 1];
|
||||||
size_t ncmds = nitems(g_fast_cmd);
|
size_t ncmds = nitems(g_fast_cmd);
|
||||||
size_t index;
|
size_t index;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user