linzhecheng
9f91022f28
virtio-serial: fix heapover-flow
...
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 <linzhecheng@huawei.com>
Message-Id: <20180328133435.20112-1-linzhecheng@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-04-09 16:36:39 +02:00
..
2018-02-19 18:27:32 +01:00
2018-03-13 23:09:50 +02:00
2018-02-09 13:50:17 +01:00
2018-03-12 16:12:49 +01:00
2018-03-23 18:26:46 +00:00
2018-03-26 14:37:13 +02:00
2018-03-26 14:37:13 +02:00
2018-01-22 09:51:00 +01:00
2018-04-09 16:36:39 +02:00
2018-03-19 14:10:36 -03:00
2017-12-18 17:07:02 +03:00
2017-10-27 16:03:54 +02:00
2018-03-13 11:17:29 -06:00
2018-04-09 16:36:39 +02:00
2018-01-22 09:46:18 +01:00
2018-02-04 14:11:03 -08:00
2018-03-01 11:05:45 +00:00
2018-04-09 16:36:39 +02:00
2018-03-27 00:38:00 -04:00
2018-03-12 16:12:48 +01:00
2018-03-23 18:26:45 +00:00
2017-10-15 05:54:43 +03:00
2018-03-02 13:45:50 -06:00
2018-03-20 15:48:34 +00:00
2018-02-06 18:29:26 +01:00
2017-10-27 16:03:54 +02:00
2018-03-20 03:34:52 +02:00
2018-01-26 11:09:09 +01:00
2018-03-12 16:12:49 +01:00
2018-03-18 18:27:23 +11:00
2018-02-06 18:29:26 +01:00
2018-03-26 15:17:25 +01:00
2018-03-19 14:09:44 -03:00
2018-02-09 13:52:16 +01:00
2018-02-06 18:29:26 +01:00
2018-03-20 15:48:34 +00:00
2018-02-13 16:33:31 +00:00
2018-03-09 17:09:43 +00:00
2016-01-29 15:07:25 +00:00
2018-03-20 15:48:34 +00:00
2018-03-23 18:38:55 +03:00
2018-03-07 08:30:28 +13:00
2018-04-03 10:03:38 +02:00
2018-04-09 16:36:39 +02:00
2018-03-23 18:26:45 +00:00
2017-12-05 19:13:45 +02:00
2018-02-09 13:52:16 +01:00
2018-03-12 16:12:48 +01:00
2018-03-12 16:12:48 +01:00
2018-03-01 11:05:44 +00:00
2018-03-02 13:45:50 -06:00
2018-03-29 17:41:02 -04:00
2018-03-12 16:12:46 +01:00
2018-03-12 16:12:48 +01:00
2018-03-12 11:43:49 +01:00
2018-03-13 11:17:31 -06:00
2018-04-09 12:57:06 +02:00
2018-03-02 13:45:50 -06:00
2018-02-13 16:33:31 +00:00
2018-02-06 18:29:46 +01:00
2018-02-09 13:52:16 +01:00
2018-02-19 13:03:24 +02:00