Give up sanitizing after 100 edit requests
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 26 Feb 2013 00:09:57 +0000 (19:09 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 26 Feb 2013 00:09:57 +0000 (19:09 -0500)
commit07a52b62115f10caea5c2d174a4272eb9ddb2284
treec135335155c32503d2462b4d0b73014a28e3f442
parent29ff25481584e20a2fa39195f295c8eb4bf3bad0
Give up sanitizing after 100 edit requests

Such fonts are *definitely* really broken.  Give up.
Limits time spent in sanitize for extremely / deliberately broken
fonts.  For example, two fonts with these md5sum / names:

  9343f0a1b8c84b8123e7d201cae62ffd.ttf
  eb8c978547f09d368fc204194fb34688.ttf

were spending over a second in sanitize!  Not anymore.
src/hb-open-type-private.hh