In hb_ot_collect_glyphs(), don't recurse to a lookup more than once
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 29 Oct 2014 18:23:08 +0000 (11:23 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 29 Oct 2014 18:23:08 +0000 (11:23 -0700)
commitfde3e4a423871463c883cb969e99c29cb6f69f6b
tree53b0e74edf4a9b9722624bbf40b1014ba4c8f125
parent5a5640d8506ccfc99fd119e89e829170d1fea421
In hb_ot_collect_glyphs(), don't recurse to a lookup more than once

Otherwise, we might process a lookup thousands of times, with no
benefit.  This pathological case was hit by Noto Nastaliq Urdu Draft
in Firefox's code to determine whether space glyph is involved in
any GSUB/GPOS rules.  A test page is at http://behdad.org/urdu

See:
https://bugzilla.mozilla.org/show_bug.cgi?id=1090869
src/hb-ot-layout-gsubgpos-private.hh