summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/tt_gsub.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2019-05-21 21:55:08 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2019-05-21 21:55:08 +0000
commit2c63db435d37cc0e0d1ef094fc78ed7e47828942 (patch)
tree7f7b834cc68c8d8f9ac57bfca7199ccf36a3db4c /Build/source/texk/dvipdfm-x/tt_gsub.c
parentbd572c9a9728818ad0e2ec3abaf206da4387e230 (diff)
Fix a crash observed in add_ligature1_inverse_map(). (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@51182 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/tt_gsub.c')
-rw-r--r--Build/source/texk/dvipdfm-x/tt_gsub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfm-x/tt_gsub.c b/Build/source/texk/dvipdfm-x/tt_gsub.c
index d88d729e7d1..fec2334bbe7 100644
--- a/Build/source/texk/dvipdfm-x/tt_gsub.c
+++ b/Build/source/texk/dvipdfm-x/tt_gsub.c
@@ -598,7 +598,7 @@ otl_gsub_read_alternate (struct otl_gsub_subtab *subtab, sfnt *sfont)
len += 2;
if (altset->GlyphCount == 0) {
altset->Alternate = NULL;
- break;
+ continue;
}
altset->Alternate = NEW(altset->GlyphCount, GlyphID);
for (j = 0; j < altset->GlyphCount; j++) {
@@ -668,7 +668,7 @@ otl_gsub_read_ligature (struct otl_gsub_subtab *subtab, sfnt *sfont)
ligset->LigatureCount = ligset_tab.count;
if (ligset_tab.count == 0) {
ligset->Ligature = NULL;
- break;
+ continue;
}
ligset->Ligature = NEW(ligset_tab.count,
struct otl_gsub_ligtab);
@@ -678,7 +678,7 @@ otl_gsub_read_ligature (struct otl_gsub_subtab *subtab, sfnt *sfont)
ligset->Ligature[j].CompCount = sfnt_get_ushort(sfont);
if (ligset->Ligature[j].CompCount == 0) {
ligset->Ligature[j].Component = NULL;
- break;
+ continue;
}
ligset->Ligature[j].Component =
NEW(ligset->Ligature[j].CompCount - 1, GlyphID);