All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qxl: Slot sanity check in qxl_phys2virt() is off by one, fix
@ 2011-11-04  9:34 Markus Armbruster
  2011-11-09 12:33 ` Gerd Hoffmann
  2012-01-17  9:08 ` Markus Armbruster
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Armbruster @ 2011-11-04  9:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel

Spotted by Coverity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 hw/qxl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/qxl.c b/hw/qxl.c
index 84ffd45..c97bebe 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1006,7 +1006,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;
-- 
1.7.6.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL] tiny spice patch queue
@ 2012-01-17 15:51 Gerd Hoffmann
  2012-01-17 15:51 ` [Qemu-devel] [PATCH] qxl: Slot sanity check in qxl_phys2virt() is off by one, fix Gerd Hoffmann
  0 siblings, 1 reply; 6+ messages in thread
From: Gerd Hoffmann @ 2012-01-17 15:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

  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(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-17 15:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-04  9:34 [Qemu-devel] [PATCH] qxl: Slot sanity check in qxl_phys2virt() is off by one, fix Markus Armbruster
2011-11-09 12:33 ` Gerd Hoffmann
2012-01-17  9:08 ` Markus Armbruster
2012-01-17 11:57   ` Alon Levy
2012-01-17 15:50   ` Gerd Hoffmann
  -- strict thread matches above, loose matches on Subject: below --
2012-01-17 15:51 [Qemu-devel] [PULL] tiny spice patch queue Gerd Hoffmann
2012-01-17 15:51 ` [Qemu-devel] [PATCH] qxl: Slot sanity check in qxl_phys2virt() is off by one, fix Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.