On Wed, Mar 28, 2018 at 09:34:35PM +0800, linzhecheng wrote:
> Check device having the feature of VIRTIO_CONSOLE_F_EMERG_WRITE before
> get config->emerg_wr. It is neccessary because sizeof(virtio_console_config)
> is 8 byte if VirtIOSerial doesn't have the feature of
> VIRTIO_CONSOLE_F_EMERG_WRITE(see virtio_serial_device_realize),
> read/write emerg_wr will lead to heap-over-flow.
> 
> Signed-off-by: linzhecheng <linzhech...@huawei.com>

Michael or Paolo: Please merge for QEMU 2.12

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>

Attachment: signature.asc
Description: PGP signature

Reply via email to