Limit max edits during sanitize to 8

Used to be 100.  If a tabe needs more than one or two edits, it's
probably completely bogus...

Might help with speeding up fuzzing for
https://github.com/behdad/harfbuzz/issues/157
This commit is contained in:
Behdad Esfahbod 2015-11-04 18:00:57 -08:00
parent 9cbc39aef9
commit 14c2de3218

View File

@ -185,7 +185,7 @@ struct hb_dispatch_context_t
/* This limits sanitizing time on really broken fonts. */
#ifndef HB_SANITIZE_MAX_EDITS
#define HB_SANITIZE_MAX_EDITS 100
#define HB_SANITIZE_MAX_EDITS 8
#endif
struct hb_sanitize_context_t :