From 14c2de321826c36037adde859ccca3e2011325a9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 4 Nov 2015 18:00:57 -0800 Subject: [PATCH] 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 --- src/hb-open-type-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index f053502..5ad850b 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -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 : -- 2.7.4