Re: [Qemu-devel] [PATCH 1/4] usb-desc: fix user trigerrable segfaults (!config)

2012-02-28 Thread Alon Levy
On Sun, Feb 26, 2012 at 05:09:21PM +0100, Alon Levy wrote: > Check for dev->config being NULL in two places: > USB_REQ_GET_CONFIGURATION and USB_REQ_GET_STATUS. > Ping. > The behavior of USB_REQ_GET_STATUS is unspecified in the Default state, > that corresponds to dev->config being NULL (it def

Re: [Qemu-devel] [PATCH 1/4] usb-desc: fix user trigerrable segfaults (!config)

2012-02-26 Thread Alon Levy
On Sun, Feb 26, 2012 at 05:09:21PM +0100, Alon Levy wrote: > Check for dev->config being NULL in two places: > USB_REQ_GET_CONFIGURATION and USB_REQ_GET_STATUS. > > The behavior of USB_REQ_GET_STATUS is unspecified in the Default state, > that corresponds to dev->config being NULL (it defaults to

[Qemu-devel] [PATCH 1/4] usb-desc: fix user trigerrable segfaults (!config)

2012-02-26 Thread Alon Levy
Check for dev->config being NULL in two places: USB_REQ_GET_CONFIGURATION and USB_REQ_GET_STATUS. The behavior of USB_REQ_GET_STATUS is unspecified in the Default state, that corresponds to dev->config being NULL (it defaults to NULL and is reset whenever a SET_CONFIGURATION with value 0, or atta