qxl: check release info object
When releasing spice resources in release_resource() routine, if release info object 'ext.info' is null, it leads to null pointer dereference. Add check to avoid it. Reported-by: Bugs SysSec <bugs-syssec@rub.de> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-id: 20190425063534.32747-1-ppandit@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
a6ae23831b
commit
d52680fc93
@ -777,6 +777,9 @@ static void interface_release_resource(QXLInstance *sin,
|
||||
QXLReleaseRing *ring;
|
||||
uint64_t *item, id;
|
||||
|
||||
if (!ext.info) {
|
||||
return;
|
||||
}
|
||||
if (ext.group_id == MEMSLOT_GROUP_HOST) {
|
||||
/* host group -> vga mode update request */
|
||||
QXLCommandExt *cmdext = (void *)(intptr_t)(ext.info->id);
|
||||
|
Loading…
Reference in New Issue
Block a user