diff options
author | Florin Malita <fmalita@chromium.org> | 2018-06-18 13:10:51 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-18 17:33:18 +0000 |
commit | 94d4d3e20b8be29233bc7056ed3b8b36def3e98a (patch) | |
tree | ed3725d2ca39707cddefeb4d7493ad3228e4cdb7 /modules/skottie/BUILD.gn | |
parent | 0333854e552ccfc810dc74d74636692f1d0da67e (diff) |
[skottie] Fix OOB access in Parse<SkPoint>
SkJSON requires valid array indices, so callers must guard against
out-of-bounds conditions explicitly.
Bug: oss-fuzz:8956
Change-Id: I50b96b088e44a4c1a569e6911d4be5d75799b464
Reviewed-on: https://skia-review.googlesource.com/135445
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'modules/skottie/BUILD.gn')
-rw-r--r-- | modules/skottie/BUILD.gn | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/skottie/BUILD.gn b/modules/skottie/BUILD.gn index dff355cf82..9442592968 100644 --- a/modules/skottie/BUILD.gn +++ b/modules/skottie/BUILD.gn @@ -40,6 +40,26 @@ source_set("skottie") { } } +source_set("tests") { + if (skia_enable_skottie) { + testonly = true + + configs += [ + "../..:skia_private", + "../..:tests_config", + ] + sources = [ + "src/SkottieTest.cpp", + ] + + deps = [ + ":skottie", + "../..:gpu_tool_utils", + "../..:skia", + ] + } +} + source_set("fuzz") { if (skia_enable_skottie) { testonly = true |