usp10: Range check glyph counts in GPOS_apply_ChainContextPos().
commit7dfe9b9c94e5c57a2b6c0b1252e72b78a17a678d
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 5 Apr 2017 08:21:28 +0000 (5 10:21 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 5 Apr 2017 14:39:54 +0000 (5 16:39 +0200)
treedb66295924c3d2d9238cbe9c66534f44e40394d8
parentf6c0146499cf0b0c632c1c14ba910dfdce57db6a
usp10: Range check glyph counts in GPOS_apply_ChainContextPos().

I.e., avoid accessing outside the "glyphs" array. If we're particularly
unlucky we may actually get a match against data outside the array.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/usp10/opentype.c