commit | 9e4fa091eeb29e2363712c886cc1e9ad78631887 | [log] [tgz] |
---|---|---|
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | Sun Apr 08 11:59:33 2018 -0300 |
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | Thu Jun 21 10:18:10 2018 -0500 |
tree | 2340ec605a2354ce984330827152055d8f773d88 | |
parent | a8e4217b0c4899621ce09669c46d008e2bcfeed4 [diff] |
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>