Reduce max nesting level from 8 to 6

We probably should implement better system to catch cyclic lookups.
But for now, this speeds up worst case behavior with broken fonts
considerably without compromising legitimate usecases.

https://github.com/behdad/harfbuzz/issues/139#issuecomment-147788447
This commit is contained in:
Behdad Esfahbod 2015-10-13 23:33:28 -03:00
parent ab17052924
commit 613e630617
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ namespace OT {
#define NOT_COVERED ((unsigned int) -1) #define NOT_COVERED ((unsigned int) -1)
#define MAX_NESTING_LEVEL 8 #define MAX_NESTING_LEVEL 6
#define MAX_CONTEXT_LENGTH 64 #define MAX_CONTEXT_LENGTH 64