aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-07-25 17:26:19 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-26 12:55:09 +0000
commit7a0ba1c1323d3cdad3057d393596692d54011e91 (patch)
tree7f668bf6ff84f7ba68c43c72bf16e55d01cffa8e /gn
parent103611d4c7c64316e5839abdc7bb6153eb1d28e1 (diff)
guard SkTableColorFilter against out-of-range inputs
I was going to be clever here and only clamp when we know the inputs are out of range, but this filter is rare and slow enough that I think I'd rather it just be super paranoid safe. The test crashes without this fix and passes with it. Change-Id: I4e17aad2b5c1e96180ce8d73b97bee746cf985c2 Reviewed-on: https://skia-review.googlesource.com/26702 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'gn')
-rw-r--r--gn/tests.gni1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/tests.gni b/gn/tests.gni
index f2737fdf48..7b2d25c065 100644
--- a/gn/tests.gni
+++ b/gn/tests.gni
@@ -238,6 +238,7 @@ tests_sources = [
"$_tests/SwizzlerTest.cpp",
"$_tests/TArrayTest.cpp",
"$_tests/TDPQueueTest.cpp",
+ "$_tests/TableColorFilterTest.cpp",
"$_tests/TemplatesTest.cpp",
"$_tests/TessellatingPathRendererTests.cpp",
"$_tests/Test.cpp",