This is an automated email from Gerrit.

?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/164

-- gerrit

commit 1307ca49a71a8977e76818ecd062498f608acd51
Author: Øyvind Harboe <oyvind.har...@zylin.com>
Date:   Thu Nov 3 21:48:04 2011 +0100

    rtos: fix warning by checking post condition
    
    this verifies the promise that more code can be added along the lines
    of the current string writing code.
    
    Change-Id: Id41e5138018b381349d474b9674e687fca70e663
    Signed-off-by: Øyvind Harboe <oyvind.har...@zylin.com>

diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index 8a59fd3..559a3d9 100644
--- a/src/rtos/rtos.c
+++ b/src/rtos/rtos.c
@@ -198,6 +198,8 @@ int gdb_thread_packet(struct connection *connection, char 
*packet, int packet_si
                                tmp_str_ptr += sprintf( tmp_str_ptr, " : %s", 
detail->extra_info_str );
                        }
 
+                       assert(tmp_str + strlen(tmp_str) == tmp_str_ptr);
+
                        char * hex_str = (char*) malloc( strlen(tmp_str)*2 +1 );
                        str_to_hex( hex_str, tmp_str );
 

-- 
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to