From: Sandy Stutsman <[email protected]> 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 <[email protected]> --- 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 [email protected] https://lists.freedesktop.org/mailman/listinfo/spice-devel
