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

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

commit c3d41195c747bd620f742525bc9aee7215e5321b
Author: p-szafonimateusz <p-szafonimate...@xiaomi.com>
AuthorDate: Wed Feb 7 15:00:07 2024 +0100

    arch/intel64/stackframe.c: fix memset size
    
    this is a follow up to the change from 2335b69120a which missed
    updating stack frame length for this memset
    
    Signed-off-by: p-szafonimateusz <p-szafonimate...@xiaomi.com>
---
 arch/x86_64/src/intel64/intel64_stackframe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86_64/src/intel64/intel64_stackframe.c 
b/arch/x86_64/src/intel64/intel64_stackframe.c
index 4ebc9c4066..2381aeef2f 100644
--- a/arch/x86_64/src/intel64/intel64_stackframe.c
+++ b/arch/x86_64/src/intel64/intel64_stackframe.c
@@ -85,7 +85,7 @@ void *up_stack_frame(struct tcb_s *tcb, size_t frame_size)
     }
 
   ret = tcb->stack_base_ptr;
-  memset(ret, 0, tcb->adj_stack_size);
+  memset(ret, 0, frame_size);
 
   /* Save the adjusted stack values in the struct tcb_s */
 

Reply via email to