diff options
| author | Li Qiang | 2016-11-01 13:37:57 +0100 |
|---|---|---|
| committer | Gerd Hoffmann | 2017-01-11 09:19:05 +0100 |
| commit | 85d9d044471f93c48c5c396f7e217b4ef12f69f8 (patch) | |
| tree | 8165649602ebe2e1796da2f22b9d2e5e7f7db224 /include/exec/user | |
| parent | Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20170110-1' into st... (diff) | |
| download | qemu-85d9d044471f93c48c5c396f7e217b4ef12f69f8.tar.gz qemu-85d9d044471f93c48c5c396f7e217b4ef12f69f8.tar.xz qemu-85d9d044471f93c48c5c396f7e217b4ef12f69f8.zip | |
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>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
