summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2019-02-23 09:52:51 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2019-02-23 09:52:51 +0000
commit035aa22dff1b55cd8da8dcd8fc12ae49dd4b6dc7 (patch)
tree5934e2c6054dc34f4bcd930966217a2f5fd5ba50 /Build
parent62d134ea2c5ff581ded0bfc6663a9a6cca71c48a (diff)
dvipdfm-x: fix a bug in tt_post.c
git-svn-id: svn://tug.org/texlive/trunk@50098 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog6
-rw-r--r--Build/source/texk/dvipdfm-x/tt_post.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index b8f2eac34af..86ab8a01e50 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,9 @@
+2019-02-23 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ * tt_post.c (tt_lookup_post_table): Fix a bug that the loop
+ exceeds post->numberOfGlyphs (= the size of post->glyphNamePtr).
+ https://github.com/texjporg/tex-jp-build/issues/74
+
2019-02-11 Karl Berry <karl@tug.org>
* configure.ac,
diff --git a/Build/source/texk/dvipdfm-x/tt_post.c b/Build/source/texk/dvipdfm-x/tt_post.c
index 5137311fe0d..2a1cd8e1970 100644
--- a/Build/source/texk/dvipdfm-x/tt_post.c
+++ b/Build/source/texk/dvipdfm-x/tt_post.c
@@ -1,6 +1,6 @@
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
- Copyright (C) 2002-2016 by Jin-Hwan Cho and Shunsaku Hirata,
+ Copyright (C) 2002-2019 by Jin-Hwan Cho and Shunsaku Hirata,
the dvipdfmx project team.
This program is free software; you can redistribute it and/or modify
@@ -161,7 +161,7 @@ tt_lookup_post_table (struct tt_post_table *post, const char *glyphname)
ASSERT(post && glyphname);
- for (gid = 0; gid < post->count; gid++) {
+ for (gid = 0; gid < post->numberOfGlyphs; gid++) {
if (post->glyphNamePtr[gid] &&
!strcmp(glyphname, post->glyphNamePtr[gid])) {
return gid;