Commit fb5eec2c authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Disallow recursing to reverse chaining substitution.

parent 3c415128
...@@ -5482,6 +5482,9 @@ static BOOL opentype_layout_apply_gsub_reverse_chain_context_substitution(struct ...@@ -5482,6 +5482,9 @@ static BOOL opentype_layout_apply_gsub_reverse_chain_context_substitution(struct
unsigned int offset = subtable_offset; unsigned int offset = subtable_offset;
UINT16 glyph, format; UINT16 glyph, format;
if (context->nesting_level_left != SHAPE_MAX_NESTING_LEVEL)
return FALSE;
glyph = context->u.subst.glyphs[context->cur]; glyph = context->u.subst.glyphs[context->cur];
format = table_read_be_word(table, offset); format = table_read_be_word(table, offset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment