This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 6b1062a64ec74e152c45af7f92732366b71d0a11
Author: wangjianyu3 <[email protected]>
AuthorDate: Tue Aug 13 10:11:49 2024 +0800

    system/fastboot: Fix Out-of-bounds Write
    
    Signed-off-by: wangjianyu3 <[email protected]>
---
 system/fastboot/fastboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/fastboot/fastboot.c b/system/fastboot/fastboot.c
index 2041dfee6..dfd46cc27 100644
--- a/system/fastboot/fastboot.c
+++ b/system/fastboot/fastboot.c
@@ -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;
 

Reply via email to