9e4fa09 gdbstub: fix off-by-one in gdb_handle_packet()

1 file Authored by Philippe Mathieu-Daudé 5 years ago, Committed by Michael Roth 5 years ago,
1 file changed. 2 lines added. 1 lines removed.
    gdbstub: fix off-by-one in gdb_handle_packet()
    
    memtohex() adds an extra trailing NUL character.
    
    Reported-by: AddressSanitizer
    Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Message-id: 20180408145933.1149-1-f4bug@amsat.org
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    (cherry picked from commit 9005774b27b6aa5e1c99d80bd59d5d048c2f7077)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    
        
file modified
+2 -1