commit | a7bd6d7a4c53ff61d7d8286a594aaa0a0e15b1a1 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Sat Dec 16 11:11:18 2017 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Sat Dec 16 11:39:32 2017 -0500 |
tree | 91448bad84849b925605206adff40d00a90cf05c | |
parent | 1ce7d6e215ef9d5386010bcdbbca79ef01811596 [diff] |
[collect_glyphs] Bail if input data looks like garbage Specificaly, when a range or sorted array has unexpected order, we take that as font data being garbage and bail out. This fixes significant slowdown on a bad version of Chandas font which has a 600KB GPOS with garbage inside. Later on, I like to add a maximum-work counter for collect_glyphs to protect against malicious fonts as well. Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=794896