提交 14c2de32 编写于 作者: B Behdad Esfahbod

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
上级 9cbc39ae
...@@ -185,7 +185,7 @@ struct hb_dispatch_context_t ...@@ -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 :
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册