[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] USB port NULL pointer causes segv
From: |
Erik Rull |
Subject: |
[Qemu-devel] USB port NULL pointer causes segv |
Date: |
Wed, 17 Aug 2011 18:24:48 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110706 Firefox/5.0 SeaMonkey/2.2 |
Hi all,
in usb-linux.c my qemu crashes in
static int usb_host_open(USBHostDevice *dev, int bus_num, int addr, char
*port, const char *prod_name, int speed)
because port is NULL.
The line that causes the problem is:
strcpy(dev->port, port);
All Ports are displayed in the qemu monitor info as (null)
when changing the line to:
if (port)
strcpy(dev->port, port);
else
dev->port[0] = '\0';
everything is fine :-)
Please check this issue and let me know if my workaround is okay.
Best regards,
Erik
- [Qemu-devel] USB port NULL pointer causes segv,
Erik Rull <=