Skip to content

Commit

Permalink
system/fastboot: Fix Out-of-bounds Write
Browse files Browse the repository at this point in the history
CID 329130: (apache#3 of 3): 越界写入 (OVERRUN)
6. overrun-local: 在字节偏移 64 处使用索引 r(其值为 64)越界 64 字节访问数组 buffer

Signed-off-by: wangjianyu3 <[email protected]>
  • Loading branch information
JianyuWang0623 committed Sep 10, 2024
1 parent 0db1389 commit cde41f4
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 cde41f4

Please sign in to comment.