diff options
| author | Behdad Esfahbod <behdad@behdad.org> | 2015-10-13 23:33:28 -0300 |
|---|---|---|
| committer | Behdad Esfahbod <behdad@behdad.org> | 2015-10-13 23:33:28 -0300 |
| commit | 613e630617074eb9b62b794cc37c9b42a7fb079b (patch) | |
| tree | e309e3e4c598e6c737b9e54b31635ff246a58e56 | |
| parent | ab170529246ad80830bef2b3c8b48e9a8d2b7483 (diff) | |
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
| -rw-r--r-- | src/hb-ot-layout-common-private.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index 6f818cb1..ea61f5c1 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -44,7 +44,7 @@ namespace OT { #define NOT_COVERED ((unsigned int) -1) -#define MAX_NESTING_LEVEL 8 +#define MAX_NESTING_LEVEL 6 #define MAX_CONTEXT_LENGTH 64 |
