Fix out of bounds palette index access
Check number of palette entries from FreeType and wrap palette in SkSpan
to pass that around, do size checks when accessing it.
Bug: skia:12579
Cq-Include-Trybots: luci.skia.skia.primary:Test-Android-Clang-GalaxyS20-GPU-MaliG77-arm64-Release-All-Android_NativeFonts
Change-Id: I1f3705a8c88225d95fb11fd42a03f220eac9334b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/463657
Commit-Queue: Dominik Röttsches <drott@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
1 file changed