From e568c8e46672251c8a030b736be933d9d6a4e237 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Thu, 20 Dec 2012 21:06:07 +0800 Subject: [PATCH] wfreerdp: fix a stack corruption when processing cursor. --- client/Windows/wf_graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/Windows/wf_graphics.c b/client/Windows/wf_graphics.c index 00d7af2c5..8f6f3a78f 100644 --- a/client/Windows/wf_graphics.c +++ b/client/Windows/wf_graphics.c @@ -208,10 +208,10 @@ void wf_Pointer_New(rdpContext* context, rdpPointer* pointer) } memset(am, 0, 32 * 4); memset(xm, 0, 32 * 4); - for (i = 0; i < 32; i++) + for (i = 0; i < height; i++) { ii = (bpp == 1) ? i : (height - 1) - i; - for (j = 0; j < 32; j++) + for (j = 0; j < width; j++) { if (freerdp_get_pixel(pointer->andMaskData, j, i, width, height, 1)) {