Re: [Qemu-devel] [PATCH 2/3] virtio-ccw: check config length before accessing it

2013-05-06 Thread Jason Wang
On 04/28/2013 04:40 PM, Jason Wang wrote: > On 04/28/2013 04:32 PM, Michael S. Tsirkin wrote: >> On Fri, Apr 26, 2013 at 04:34:03PM +0800, Jason Wang wrote: >>> virtio-rng-ccw has zero config length, so we need validate the config length >>> before trying to access it. Otherwise we may crash since

Re: [Qemu-devel] [PATCH 2/3] virtio-ccw: check config length before accessing it

2013-04-28 Thread Jason Wang
On 04/28/2013 04:32 PM, Michael S. Tsirkin wrote: > On Fri, Apr 26, 2013 at 04:34:03PM +0800, Jason Wang wrote: >> virtio-rng-ccw has zero config length, so we need validate the config length >> before trying to access it. Otherwise we may crash since vdev->config is >> NULL. >> >> Cc: Cornelia Hu

Re: [Qemu-devel] [PATCH 2/3] virtio-ccw: check config length before accessing it

2013-04-28 Thread Michael S. Tsirkin
On Fri, Apr 26, 2013 at 04:34:03PM +0800, Jason Wang wrote: > virtio-rng-ccw has zero config length, so we need validate the config length > before trying to access it. Otherwise we may crash since vdev->config is NULL. > > Cc: Cornelia Huck > Cc: Richard Henderson > Cc: Alexander Graf > Signed

[Qemu-devel] [PATCH 2/3] virtio-ccw: check config length before accessing it

2013-04-26 Thread Jason Wang
virtio-rng-ccw has zero config length, so we need validate the config length before trying to access it. Otherwise we may crash since vdev->config is NULL. Cc: Cornelia Huck Cc: Richard Henderson Cc: Alexander Graf Signed-off-by: Jason Wang --- hw/s390x/virtio-ccw.c |4 ++-- 1 files chang