usb-redir: fix stack overflow in usbredir_log_data
commitbd4a683505b27adc1ac809f71e918e58573d851d
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 9 May 2017 11:01:28 +0000 (9 13:01 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 12 May 2017 10:26:40 +0000 (12 12:26 +0200)
treea288e16d402db618528b2a1f53492c0830f11bc8
parenta92ff8c123f45b3eb01a54f61d7be088e345612a
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
hw/usb/redirect.c