summaryrefslogtreecommitdiff
authorBehdad Esfahbod <behdad@behdad.org>2011-05-10 19:47:24 (GMT)
committer Behdad Esfahbod <behdad@behdad.org>2011-09-08 04:41:40 (GMT)
commit81c8ef785b079980ad5b46be4fe7c7bf156dbf65 (patch) (side-by-side diff)
tree29e031c2611a1155fc842db774d086d60cdae29f
parentd10a264823e81631336bab37f08a52cc243d3654 (diff)
downloadharfbuzz.old-81c8ef785b079980ad5b46be4fe7c7bf156dbf65.zip
harfbuzz.old-81c8ef785b079980ad5b46be4fe7c7bf156dbf65.tar.gz
Fix crash!
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/harfbuzz-gpos.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/harfbuzz-gpos.c b/src/harfbuzz-gpos.c
index a216005..7bd3b3b 100644
--- a/src/harfbuzz-gpos.c
+++ b/src/harfbuzz-gpos.c
@@ -3012,6 +3012,9 @@ static HB_Error Lookup_MarkMarkPos( GPOS_Instance* gpi,
j--;
}
+ if ( i > buffer->in_pos )
+ return HB_Err_Not_Covered;
+
error = _HB_OPEN_Coverage_Index( &mmp->Mark2Coverage, IN_GLYPH( j ),
&mark2_index );
if ( error )