commit | 2d2fedd25de02aba20f5078e74df92b2d25b799c | [log] [tgz] |
---|---|---|
author | Khushal <khushalsagar@chromium.org> | Wed May 16 16:07:24 2018 -0700 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu May 17 20:01:53 2018 +0000 |
tree | 792ba59606dc0688c04394fc2b840c3ee4e78904 | |
parent | 53ea91139ad9f5ec32fba2cfd167277a5cc3f443 [diff] |
fonts: Use empty glyphs on cache miss. In case of a cache miss, we end up using a glyph with garbage memory which can result in arbitrary memory allocations for generating images for these glyphs. Use empty glyphs instead. R=herb@google.com Bug: skia:7913 Change-Id: Ie81b006a6872e077f9fd37e0a5751750c66f9ecb Reviewed-on: https://skia-review.googlesource.com/128701 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Khusal Sagar <khushalsagar@chromium.org>