]> git.ipfire.org Git - thirdparty/qemu.git/commit
gdbstub: fix off-by-one in gdb_handle_packet()
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 8 Apr 2018 14:59:33 +0000 (11:59 -0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 15:18:10 +0000 (10:18 -0500)
commit9e4fa091eeb29e2363712c886cc1e9ad78631887
tree2340ec605a2354ce984330827152055d8f773d88
parenta8e4217b0c4899621ce09669c46d008e2bcfeed4
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>
gdbstub.c