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-07-04 13:15:22 +01:00
2016-05-19 16:42:29 +02:00
2016-05-12 13:22:30 +01:00
2016-05-19 16:42:29 +02:00
2014-07-11 10:17:02 +02:00
2016-12-05 11:01:55 +01:00
2016-07-07 13:47:01 +01:00
2016-05-12 13:22:27 +01:00
2016-01-29 15:07:24 +00:00
2015-07-24 13:57:45 +02:00
2016-01-29 15:07:24 +00:00
2016-05-13 09:33:38 +01:00
2016-06-14 16:01:03 +01:00
2016-10-28 18:17:23 +03:00
2014-02-04 19:34:30 +01:00
2016-06-20 18:12:04 +02:00
2016-01-29 15:07:24 +00:00
2016-05-12 13:22:24 +01:00
2016-05-12 13:22:24 +01:00
2014-01-31 14:47:33 +00:00
2016-10-24 16:26:56 +01:00
2016-01-29 15:07:23 +00:00
2014-01-31 14:47:33 +00:00
2016-01-29 15:07:24 +00:00
2016-01-29 15:07:24 +00:00
2016-12-05 09:37:52 +01:00
2016-07-12 16:20:46 +02:00
2014-06-05 16:04:17 +02:00
2016-03-22 22:20:17 +01:00
2017-01-09 11:40:20 +00:00
2016-09-22 18:13:08 +01:00
2014-01-31 14:47:33 +00:00
2016-05-19 16:42:28 +02:00
2016-03-22 22:20:17 +01:00
2016-08-12 10:36:01 +01:00
2016-07-12 16:20:46 +02:00
2014-09-30 13:34:09 +02:00
2016-01-29 15:07:24 +00:00
2016-09-08 18:05:21 +04:00
2016-01-29 15:07:24 +00:00
2016-06-20 16:38:13 +02:00
2016-07-12 16:20:46 +02:00
2017-01-11 09:19:05 +01:00
2016-09-13 09:26:58 +02:00
2017-01-03 15:47:21 +01:00
2016-10-08 11:25:29 +03:00
2016-09-13 09:24:35 +02:00
2016-10-28 17:54:39 -07:00
2016-07-07 13:47:00 +01:00