Harden SkTextBlob deserialization
1) validate allocInternal args - these can originate either from users
or deserialization
2) skip invoking SkTypefaceResolverProc if we failed to read a valid id
in SkTypefaceResolverReadBuffer::readTypeface
3) validate textSize and buffer sanity in MakeFromBuffer before
attempting to allocate runs
BUG=chromium:786524
Change-Id: I6cf80dc60bc3ca6fcad7198d36dacf84d091b779
Reviewed-on: https://skia-review.googlesource.com/73521
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
1 file changed