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:
parent
9cbc39aef9
commit
14c2de3218
@ -185,7 +185,7 @@ struct hb_dispatch_context_t
|
|||||||
|
|
||||||
/* This limits sanitizing time on really broken fonts. */
|
/* This limits sanitizing time on really broken fonts. */
|
||||||
#ifndef HB_SANITIZE_MAX_EDITS
|
#ifndef HB_SANITIZE_MAX_EDITS
|
||||||
#define HB_SANITIZE_MAX_EDITS 100
|
#define HB_SANITIZE_MAX_EDITS 8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct hb_sanitize_context_t :
|
struct hb_sanitize_context_t :
|
||||||
|
Loading…
Reference in New Issue
Block a user