skia2/modules/skottie
Florin Malita 3e1354a592 [skottie] Fix assert for missing layer type
When the layer type is missing, fType == -1 and we rely on unsigned
(size_t) underflow + check against the known types array size to catch
the condition.

The problem is SkToSizeT() itself asserts the input is a valid size_t,
and even if it didn't clusterfuzz would likely complain about
underflowing.

Refactor to check for negative values explicitly.

Bug: b/200660146
Change-Id: Iae74dca14ac0202ffcdd4449f0d470063916eff5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/493116
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
2022-01-10 18:52:39 +00:00
..
fuzz [fuzz] Standardize, document, and backport fuzzing defines. 2020-09-14 13:36:10 +00:00
gm Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
include Export some classes callers may use for Skottie. 2021-10-13 01:35:54 +00:00
src [skottie] Fix assert for missing layer type 2022-01-10 18:52:39 +00:00
tests [skottie] Log text layout errors 2021-10-14 14:29:11 +00:00
utils Expanded PropertyObserver interface to include Node Type 2021-06-11 17:00:47 +00:00
BUILD.gn Reland "[skottie] AllCaps support" 2021-09-03 14:43:59 +00:00
skottie.gni add sharpen effect support to skottie player 2021-12-14 19:44:26 +00:00