]> git.proxmox.com Git - mirror_qemu.git/commit
usb-redir: fix stack overflow in usbredir_log_data
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 9 May 2017 11:01:28 +0000 (13:01 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 31 Aug 2017 16:51:16 +0000 (11:51 -0500)
commit4e6889b76b379bef932bf93dd158ca4676efa61e
tree55842dbe690f93288254d7d44aea5c480041f0bc
parent244a3ef947ec21020459d6f6f81626d70aeae1c2
usb-redir: fix stack overflow in usbredir_log_data

Don't reinvent a broken wheel, just use the hexdump function we have.

Impact: low, broken code doesn't run unless you have debug logging
enabled.

Reported-by: 李强 <liqiang6-s@360.cn>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20170509110128.27261-1-kraxel@redhat.com
(cherry picked from commit bd4a683505b27adc1ac809f71e918e58573d851d)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/usb/redirect.c