This is an automated email from Gerrit.

"Daniel Goehring <dgoeh...@os.amperecomputing.com>" just uploaded a new patch 
set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7221

-- gerrit

commit 93ce57d582f3591093df589146b07fceeea204e6
Author: Daniel Goehring <dgoeh...@os.amperecomputing.com>
Date:   Wed Sep 21 17:17:04 2022 -0600

    target/target: read_memory 64-bit bugfix
    
    Increase "value_buf" size so it can hold a 64-bit number represented
    as a string. Previous size could only hold a 32-bit number string.
    
    Signed-off-by: Daniel Goehring <dgoeh...@os.amperecomputing.com>
    Change-Id: If6fbc875236e6ddc59522fbc25db0129eb60ee27

diff --git a/src/target/target.c b/src/target/target.c
index 794ee2f01d..783159fecc 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -4717,7 +4717,7 @@ static int target_jim_read_memory(Jim_Interp *interp, int 
argc,
                                break;
                        }
 
-                       char value_buf[11];
+                       char value_buf[19];
                        snprintf(value_buf, sizeof(value_buf), "0x%" PRIx64, v);
 
                        Jim_ListAppendElement(interp, result_list,

-- 

Reply via email to