Support for larger than "signed 32b limit" sized bitmaps in BGRAConvolve2D.
authorsugoi <sugoi@chromium.org>
Wed, 11 Jun 2014 13:31:29 +0000 (06:31 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 11 Jun 2014 13:31:29 +0000 (06:31 -0700)
commit35fcd15d0598bca6a265100ace5d10a0d992cf9c
tree5fa2766e0e276546441890050d8040edbf5292a6
parente4538f5b46d70798e34eb078f5d5e76a59d02318
Support for larger than "signed 32b limit" sized bitmaps in BGRAConvolve2D.

The multiplication of 2 signed ints was producing a result larger than what's supported by a single signed int and the memory was accessed out of bounds. Using uint64_t solves the issue.

BUG=378491
R=reed@google.com, rmistry@google.com

Author: sugoi@chromium.org

Review URL: https://codereview.chromium.org/323013005
src/core/SkConvolver.cpp