From: Sandy Stutsman <sstut...@redhat.com>

Can result in a BSOD, as the image would be mapped only partially causing page 
faults when
accessing missing piece of the image.

Acked-by: Frediano Ziglio <fzig...@redhat.com>
---
 qxldod/QxlDod.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index fdaae8e..014e236 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -3638,7 +3638,7 @@ QxlDevice::ExecutePresentDisplayOnly(
 
     {
         // Map Source into kernel space, as Blt will be executed by system 
worker thread
-        UINT sizeToMap = SrcBytesPerPixel * ctx->SrcWidth * ctx->SrcHeight;
+        UINT sizeToMap = ctx->SrcPitch * ctx->SrcHeight;
 
         PMDL mdl = IoAllocateMdl((PVOID)SrcAddr, sizeToMap,  FALSE, FALSE, 
NULL);
         if(!mdl)
-- 
2.7.0.windows.1

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to