Li Qiang 85d9d04447 virtio-gpu: fix information leak in capset get dispatch
In virgl_cmd_get_capset function, it uses g_malloc to allocate
a response struct to the guest. As the 'resp'struct hasn't been full
initialized it will lead the 'resp->padding' field to the guest.
Use g_malloc0 to avoid this.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 58188cae.4a6ec20a.3d2d1.aff2@mx.google.com

[ kraxel: resolved conflict ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2017-01-11 09:19:05 +01:00
..
2016-10-04 13:28:07 +01:00
2017-01-10 05:56:58 +02:00
2016-10-24 15:46:10 +02:00
2017-01-10 05:56:58 +02:00
2016-06-17 16:33:48 +10:00
2017-01-10 14:52:34 +00:00
2016-05-18 15:04:27 +03:00
2016-10-24 15:27:20 +02:00
2017-01-10 07:02:53 +02:00
2016-01-29 15:07:25 +00:00
2017-01-10 05:56:58 +02:00
2016-09-22 18:13:08 +01:00
2016-09-29 11:43:22 +08:00
2016-10-28 18:17:24 +03:00
2016-09-15 15:32:22 +03:00
2016-10-24 15:27:20 +02:00
2016-10-04 13:28:07 +01:00