projects
/
apps
/
home
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eb8751
)
Disallow ligature substitutions replacing one glyph
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 13 Dec 2010 19:22:35 +0000
(14:22 -0500)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 13 Dec 2010 19:22:35 +0000
(14:22 -0500)
src/hb-ot-layout-gsub-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-layout-gsub-private.hh
b/src/hb-ot-layout-gsub-private.hh
index
169290b
..
ae1c5f3
100644
(file)
--- a/
src/hb-ot-layout-gsub-private.hh
+++ b/
src/hb-ot-layout-gsub-private.hh
@@
-345,7
+345,7
@@
struct Ligature
unsigned int i, j;
unsigned int count = component.len;
unsigned int end = MIN (c->buffer->len, c->buffer->i + c->context_length);
- if (unlikely (c->buffer->i + count > end))
+ if (unlikely (c
ount < 2 || c
->buffer->i + count > end))
return false;
bool first_was_mark = (c->property & HB_OT_LAYOUT_GLYPH_CLASS_MARK);