commit | 88c0dee2fcd6095be1383e0b42fd5e5eb56c89b5 | [log] [tgz] |
---|---|---|
author | Kevin Lubick <kjlubick@google.com> | Thu Sep 29 09:05:31 2022 -0400 |
committer | Kevin Lubick <kjlubick@google.com> | Thu Sep 29 16:59:11 2022 +0000 |
tree | 7f0f8c0c4c6a6248c8afca729c91bfcf996758fc | |
parent | ad2aed5c2f56f555108c35beb0fb55f13ca90803 [diff] |
Add more guards to deserializing SkCustomTypeface A well-defined font shouldn't have glyphs with infinite bounds nor try to allocate more memory for path data than exists in the stream. Change-Id: I3fc8ae83958acbb2d1ad28a5fcf63162253c14fd Bug: oss-fuzz:49770 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/585956 Owners-Override: Kevin Lubick <kjlubick@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>