Skip to contentSkip to conversation

tiny spice patch queue

GIT PULL New Gerd Hoffmann 2 participants 3 messages Jan 17, 2012 – Jan 19, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

please pull a qxl bugfix.

thanks,
Gerd

The following changes since commit 515aa3c57986b3e26558d72ecaeb7545ecd30510:

check-qstring: remove check.h include (2012-01-12 11:33:22 -0600)

are available in the git repository at:
git://anongit.freedesktop.org/spice/qemu spice.v47

Markus Armbruster (1):
qxl: Slot sanity check in qxl_phys2virt() is off by one, fix

 hw/qxl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
#1 lore raw

PATCH 1/1 qxl: Slot sanity check in qxl_phys2virt() is off by one, fix

From: Markus Armbruster <[email protected]>

Spotted by Coverity.

---
 hw/qxl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/qxl.c +1 -1
index ac81927..bdd36f9 100644
@@ -1020,7 +1020,7 @@ void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL pqxl, int group_id)
     case MEMSLOT_GROUP_HOST:
         return (void*)offset;
     case MEMSLOT_GROUP_GUEST:
-        PANIC_ON(slot > NUM_MEMSLOTS);
+        PANIC_ON(slot >= NUM_MEMSLOTS);
         PANIC_ON(!qxl->guest_slots[slot].active);
         PANIC_ON(offset < qxl->guest_slots[slot].delta);
         offset -= qxl->guest_slots[slot].delta;
Signature · 1 line
1.7.1
#2 lore raw
In reply to Gerd Hoffmann
Quoted 3 lines · Gerd Hoffmann
   Hi,

please pull a qxl bugfix.

Pulled. Thanks.

Regards,

Anthony Liguori

Quoted 18 lines

thanks,
Gerd

The following changes since commit 515aa3c57986b3e26558d72ecaeb7545ecd30510:

   check-qstring: remove check.h include (2012-01-12 11:33:22 -0600)

are available in the git repository at:
git://anongit.freedesktop.org/spice/qemu spice.v47

Markus Armbruster (1):
qxl: Slot sanity check in qxl_phys2virt() is off by one, fix

  hw/qxl.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)