commit | 72245c522ab65593239f2056df16082edb4e0a2e | [log] [tgz] |
---|---|---|
author | Florin Malita <fmalita@chromium.org> | Tue Dec 13 09:42:20 2016 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Dec 13 15:22:27 2016 +0000 |
tree | 3783f55914859d1c317b58126521a7c851cfa822 | |
parent | 941e7e2c9567ab1d8a3b2d1b0e3db71ee5eb75c9 [diff] |
Avoid int64 overflow in SkClampRange Update sk_64_smul_check to detect the numeric_limits<int64_t>::min() case (which cannot be safely passed to SkTAbs), and fail. BUG=skia:6019 R=reed@google.com,mtklein@google.com Change-Id: I5f252be7e9377d3261f992b53f2b893899cbe960 Reviewed-on: https://skia-review.googlesource.com/5863 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>