summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/font
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-02-01 22:43:41 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-02-01 22:43:41 +0000
commit23d1eb6423786dfd7bdb4bc3c13f399ee0da6612 (patch)
treeb8ea34e42bd186f391050eef006e6d03ff4a949e /Build/source/texk/web2c/luatexdir/font
parent7e0f5f37cb41918b36a55179926b38b64770f784 (diff)
web2c/luatexdir: sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@39537 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font')
-rw-r--r--Build/source/texk/web2c/luatexdir/font/writecff.w3
1 files changed, 3 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/writecff.w b/Build/source/texk/web2c/luatexdir/font/writecff.w
index 389eed8db76..3f4a4e58879 100644
--- a/Build/source/texk/web2c/luatexdir/font/writecff.w
+++ b/Build/source/texk/web2c/luatexdir/font/writecff.w
@@ -3374,6 +3374,9 @@ void write_cid_cff(PDF pdf, cff_font * cffont, fd_entry * fd)
num_glyphs++;
}
}
+ if (last_cid >= cffont->num_glyphs) {
+ formatted_error("cff font","bad glyph index %i",last_cid);
+ }
/* CIDSet: a table of bits indexed by cid, bytes with high order bit first,
each (set) bit is a (present) CID. */