From bac5f0fb56694d2bae7a6285bd46668c63cfa284 Mon Sep 17 00:00:00 2001 From: "jiayl@webrtc.org" Date: Tue, 15 Jul 2014 20:32:03 +0000 Subject: [PATCH] Fix an invalid memory access due to typo in win/cursor.cc. BUG=crbug/391468 R=sergeyu@chromium.org Review URL: https://webrtc-codereview.appspot.com/19949004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6698 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/desktop_capture/win/cursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/desktop_capture/win/cursor.cc b/webrtc/modules/desktop_capture/win/cursor.cc index 00055c44ad..e3c272ce82 100644 --- a/webrtc/modules/desktop_capture/win/cursor.cc +++ b/webrtc/modules/desktop_capture/win/cursor.cc @@ -197,7 +197,7 @@ MouseCursor* CreateMouseCursorFromHCursor(HDC dc, HCURSOR cursor) { // The XOR mask becomes the color bitmap. memcpy( - image->data(), mask_plane + (width * height), image->stride() * width); + image->data(), mask_plane + (width * height), image->stride() * height); } // Reconstruct transparency from the mask if the color image does not has