Skip to content

Commit

Permalink
system/fastboot: Fix Out-of-bounds Write
Browse files Browse the repository at this point in the history
Signed-off-by: wangjianyu3 <[email protected]>
  • Loading branch information
JianyuWang0623 committed Sep 11, 2024
1 parent 768954b commit 58e41f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/fastboot/fastboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 58e41f1

Please sign in to comment.