skia2/modules
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
..
androidkit Remove SkM44.h include from SkImage.h. 2021-12-23 13:45:20 +00:00
audioplayer implement SkAudioPLayer for Android 2020-12-15 00:12:48 +00:00
canvaskit Set up basic hello world sk_app 2022-01-06 20:29:35 +00:00
particles Refactor SkMatrixProvider slightly 2021-12-09 20:10:58 +00:00
pathkit [infra] Deduplicate serve.py 2021-10-12 11:42:50 +00:00
skottie [skottie] Fix assert for missing layer type 2022-01-10 18:52:39 +00:00
skparagraph Fixing some getRectsForRange issues 2022-01-06 18:53:23 +00:00
skplaintexteditor Reland "Add format-specifier warnings to SkDebugf." 2021-06-25 17:57:43 +00:00
skresources [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
sksg Pass CTM to path effects (experimental) 2021-07-13 18:42:55 +00:00
skshaper Call SkFont::getBounds once per run in ShaperHarfBuzz::shape 2021-12-09 19:37:03 +00:00
skunicode Avoid scanning for bidi levels if the paragraph is unidirectional 2022-01-06 17:39:50 +00:00
svg [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
BUILD.bazel [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00