diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2010-04-14 13:36:33 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2010-04-14 13:36:33 +0000 |
commit | 258cb228c636282a3e4f4ce87b1017498e207f33 (patch) | |
tree | 0aa4e39f727c838d77e2244c55adb7149208a54c /src/core/SkBitmapProcState_matrixProcs.cpp | |
parent | c846ede6a08d02522c3b58afc29a3d55150dbf83 (diff) |
fix overflow in matrixproc, and add debugging code to test that
git-svn-id: http://skia.googlecode.com/svn/trunk@548 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkBitmapProcState_matrixProcs.cpp')
-rw-r--r-- | src/core/SkBitmapProcState_matrixProcs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkBitmapProcState_matrixProcs.cpp b/src/core/SkBitmapProcState_matrixProcs.cpp index 6654312a8f..d0bc8d814c 100644 --- a/src/core/SkBitmapProcState_matrixProcs.cpp +++ b/src/core/SkBitmapProcState_matrixProcs.cpp @@ -368,7 +368,7 @@ static void clampx_nofilter_trans(const SkBitmapProcState& s, } // fill the remaining with the max value - sk_memset16(xptr, width - 1, count * sizeof(uint16_t)); + sk_memset16(xptr, width - 1, count); } static void repeatx_nofilter_trans(const SkBitmapProcState& s, |