mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 19:19:05 +00:00
memslot: do not crash if guest provide a wrong address
This could happen with buggy driver. This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1264356 Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
2094e8f1db
commit
aa724b170b
@ -61,7 +61,7 @@ int memslot_validate_virt(RedMemSlotInfo *info, unsigned long virt, int slot_id,
|
||||
|
||||
if (virt < slot->virt_start_addr || (virt + add_size) > slot->virt_end_addr) {
|
||||
print_memslots(info);
|
||||
spice_critical("virtual address out of range\n"
|
||||
spice_warning("virtual address out of range\n"
|
||||
" virt=0x%lx+0x%x slot_id=%d group_id=%d\n"
|
||||
" slot=0x%lx-0x%lx delta=0x%lx",
|
||||
virt, add_size, slot_id, group_id,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user